esar / contiki-mqtt

MQTT client library for Contiki
http://hacks.esar.org.uk/contiki-mqtt-client/
102 stars 39 forks source link

Unknown type name 'process_event_t' #8

Closed skatsikeas closed 9 years ago

skatsikeas commented 9 years ago

Hello, I am trying to compile the example.c for a Zolertia Z1 mote on the Cooja simulator (Contiki 3.0) but I get the following two errors:

In file included from example.c:1:0: mqtt-service.h:60:1: error: unknown type name ‘process_event_t’ mqtt-service.h:84:18: error: unknown type name ‘uip_ip6addr_t’

What am I doing wrong?

Also my makefile is the following:

ifndef TARGET TARGET=z1 endif

all: $(CONTIKI_PROJECT) APPS= mqtt-service CONTIKI = ../.. CONTIKI_WITH_RIME = 1 include $(CONTIKI)/Makefile.include

skatsikeas commented 9 years ago

I found the solution, have not included

include "contiki.h"

include "net/rime/rime.h"