MQTT Demo in Contiki cooja Simulator. not working.

1,221 views
Skip to first unread message

Kaleem Ullah

unread,
Dec 5, 2015, 6:22:58 AM12/5/15
to MQTT
I am new to Contiki os and MQTT protocol.
1. create new simulation in cooja simulator.
2. create new z1 mote and browse to "contiki/examples/cc2538dk/mqtt-demo/mqtt-demo.c" file and select it to compile.
3. on compilation it produces error:
mqtt-demo.c:56:32: fatal error: dev/cc2538-sensors.h: No such file or directory
compilation terminated.
make: *** [mqtt-demo.co] Error 1
Process returned error code 2

the file is located at "contiki/cpu/cc2538/dev/cc2538-sensors.h" and I point the header file to this directory and compile it. again not working still producing same error.
help me. I want to run MQTT based example.

Rafael Laurindo Cachoeira

unread,
Mar 8, 2016, 5:18:54 PM3/8/16
to MQTT
Try copy the full folder "dev" of "contiki/cpu/cc2538/"

and paste in "contiki/examples/cc2538dk/mqtt-demo/"

Vishal Rathod

unread,
Feb 6, 2017, 4:17:19 AM2/6/17
to MQTT
Hello,

I am trying to do the same but it gives me following error.

 mqtt-demo.c: In function ‘publish’:
 mqtt-demo.c:464:18: error: ‘BOARD_STRING’ undeclared (first use in this function)

Please help me. I want to run MQTT example.

Thanks
Vishal

saeed sobhaninejad

unread,
Nov 23, 2018, 10:58:36 AM11/23/18
to MQTT
Hello
I have this problem
Can you solve it?
Thank you

Kaleem Ullah

unread,
Nov 27, 2018, 4:30:02 AM11/27/18
to mq...@googlegroups.com

this repo contains examples and working demo of mqtt and coap protocols


for more you can explore my other repository.


please share it with others

Jazak Allah
Kaleem Ullah MSCS14059


--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to a topic in the Google Groups "MQTT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mqtt/9BtuJUG5xBQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Kaleem Ullah

unread,
Nov 27, 2018, 4:30:43 AM11/27/18
to mq...@googlegroups.com

this repo contains examples and working demo of mqtt and coap protocols


for more you can explore my other repository.


please share it with others

Jazak Allah
Kaleem Ullah MSCS14059


On Fri, Nov 23, 2018 at 8:58 PM saeed sobhaninejad <saeedsob...@gmail.com> wrote:
Hello
I have this problem
Can you solve it?
Thank you


On Monday, February 6, 2017 at 12:47:19 PM UTC+3:30, Vishal Rathod wrote:

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to a topic in the Google Groups "MQTT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mqtt/9BtuJUG5xBQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
--

Vishal Rathod

unread,
Nov 27, 2018, 5:49:44 AM11/27/18
to mq...@googlegroups.com
Thanks sir
--
Vishal Rathod
Research Scholar,
Computer Science and Engineering Department,
National Institute of Technology, Karnataka.

saeed sobhaninejad

unread,
Nov 30, 2018, 12:10:36 PM11/30/18
to MQTT
I want to simulate mqtt demo example in cooja simulator,but i have a lot of  compile error
I need help
I upload my error file
Thank you
Untitled Document 2
Reply all
Reply to author
Forward
0 new messages