MQTT or CoAP LWM2M ?
응답
16. 11. 7 오후 4:29

Hi all

I’m an absolute beginner but very interested in IoT and bought the XDK for use in my studies.

My goal is to send XDK measuring data to a Server in the Cloud. Sending should happen by interval not by request, I’d like to send data every 1 second for example (just like a datalogger). I’d like to connect the XDK over WiFi to the internet. If possible data should be stored in a database and I would like to read data over a simple webinterface.

I read about different protocols used in IoT and have to make a decision between MQTT with Mosquitto Broker Server implementation and CoAP / LWM2M with Leshan. I think both ways would do it but I can not estimate what’s the better one.

I’m not so good in programming, I have some basic skills in object oriented programming but not so much practical experience. That’s why I rely on a good documentation / tutorials / example code / community.

What do you think is the better solution for my project? Do you have recommendations, whats the best way to go for a beginner like me?

Thank you very much for your help!

Br,

Peter

0 (0 투표)
RE: MQTT or CoAP LWM2M ?
응답
16. 11. 7 오후 6:28 as a reply to Peter Scheurer.

Hello Peter,

welcome to the XDK community. First of all, I  recommend to go through the available beginner guides you can find in the help & learning section of the XDK community to get a deeper knowledge about the XDK.

Further I recommend to use the MQTT protocol for your application. It is easier to set up than CoAP or LWM2M. The mosquito MQTT broker is very convenient to set up and understand.

Unfortunately the only avaiblabe documentation is the MQTT paho demo and Bosch IoT Suite which both implement the MQTT protocol. I recommend to take a look at the MQTT paho demo. The documentation provides a lot of information about how to configure  and adapt it to your wishes. Further it is very simple to connect it to your own MQTT broker by changing the broker name in the configuration file.

Please tell me if this helps and don’t hesitate to ask if anything is unclear.

Kind regards,
Franjo

+1 (1 투표)
RE: MQTT or CoAP LWM2M ?
응답
16. 11. 7 오후 6:31 as a reply to Peter Scheurer.
Hello - there are 2 demos available which will fit your needs.
The Paho Example or IoT Suite works with MQTT, the LWM2M demo with CoAP LWM2M.
All your data will be visible in a cloud application.
 
+1 (1 투표)
RE: MQTT or CoAP LWM2M ?
응답
16. 11. 8 오전 7:20 as a reply to Peter Scheurer.

Thank you Franji, Thank you Achim.

Sure i will work trough the Bosch XDK Guides. It's not the first time i read MQTT is easier for first use, so i think i will go with MQTT and try LWM2M later.

Br,

Peter

0 (0 투표)
RE: MQTT or CoAP LWM2M ?
응답
16. 11. 8 오전 9:36 as a reply to Peter Scheurer.

Hello Peter,

I am glad to help.

Please don't hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 투표)