aignacio / mqtt-sn-contiki_example Goto Github PK
View Code? Open in Web Editor NEWExample of MQTT-SN with Contiki-OS for blog.aignacio.com
License: Apache License 2.0
Example of MQTT-SN with Contiki-OS for blog.aignacio.com
License: Apache License 2.0
Hi @aignacio
I have tried to run the MQTT-sn in Contiki. Everything works fine for me except rsmb broker.
following is the command and error that prompt.
user@instant-contiki:~/contiki/mqtt-sn-contiki/tools/mosquitto.rsmb/rsmb/src$ sudo ./broker_mqtts config.mqtt
./broker_mqtts: 1: ./broker_mqtts: Syntax error: "(" unexpected
I have also gone through the broker.c file but there is not initial bracket for that.
Regards,
Vishal
I've tried following the tutorial in your blog but I'm facing the following error while starting the MQTT-SN Broker.
user@instant-contiki:~/contiki/examples/mqtt/tools/mosquitto.rsmb/rsmb/src$ sudo ./broker_mqtts config.mqtt ./broker_mqtts: 1: ./broker_mqtts: Syntax error: "(" unexpected
I'm unable to resolve the issue. I would appreciate if you could help me resolve it.
How can i show message received by subscriber ?
I have 1 rpl-border-router
and 2 mqtt-publisher-subscriber: main_core.c
When i start simulation i read message received by border router but i want that the subscriber mote show 'Message received..'
read from specific topic every clock time.
I found this function: mqtt_sn_recv_parser
But it never called.
So how can i run callback function on subscriber and show message received from other mqtt-mote ?
Thanks
I followed your tutorial but when I try run rsmb I get,
sudo ./broker_mqtts config.mqtt
[sudo] password for anshul:
20200823 221438.050 CWNAN9999I Really Small Message Broker
20200823 221438.050 CWNAN9998I Part of Project Mosquitto in Eclipse
(http://projects.eclipse.org/projects/technology.mosquitto)
20200823 221438.050 CWNAN0049I Configuration file name is config.mqtt
20200823 221438.050 CWNAN0053I Version 1.3.0.2, Aug 26 2016 01:39:45
20200823 221438.050 CWNAN0054I Features included: bridge MQTTS
20200823 221438.050 CWNAN9993I Authors: Ian Craggs ([email protected]), Nicholas O'Leary
20200823 221438.050 CWNAN0075W Socket error 98 (Address already in use) in bind for socket 3
20200823 221438.050 CWNAN0078W Cannot bind port 1883
20200823 221438.050 CWNAN0015W Cannot start listener on port 1883
20200823 221438.050 CWNAN0016I MQTT protocol stopping
20200823 221438.050 CWNAN0301I MQTT-S protocol stopping
20200823 221438.050 CWNAN0075W Socket error 88 (Socket operation on non-socket) in shutdown for socket 0
20200823 221438.050 CWNAN0044I Messages sent: 0
20200823 221438.050 CWNAN0043I Messages received: 0
20200823 221438.051 CWNAN0042I Uptime: 0 seconds
20200823 221438.051 CWNAN0055I Maximum heap use: 132720 bytes
20200823 221438.051 CWNAN0047I Broker stopped
I tried
kill -9 1883
but it says that operation is not permitted.
How should I proceed further?
This must have a document to show how it works ?
I already cloned the the package mqtt-sn-contiki_example into my contiki directory but got this error when i want to run command make all :
main_core.c:32:24: fatal error: net/ip/uip.h: No such file or directory
compilation terminated.
make: *** [main_core.co] Error 1
can you help t figure out what is missing?
Thank you
Hello ,
Actually it's my first time to use mqtt_sn_contiki example , although it works fine , but when i tried to handle collect view for motes nothing appear , i tried to add collect view but issues appear in make files , how could i display performance metrics via collect view for mqtt_sn ? any help could be useful
Many Thanks
Hi,
I want to learn MQTT-SN protocol by using your example. But I don't know how to write the configure file config.mqtt. Can you help me?
https://blog.aignacio.com/2017/06/25/6lowpan-mqtt-and-contiki-os/
Best Regards,
Xian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.