cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Delivering Arduino Collected Data to ThingWorx using MQTT

Highlighted
Level 1

Delivering Arduino Collected Data to ThingWorx using MQTT

ThingWorx provides multiple ways to deliver your data to the server. You can choose from the C based EMS to your own C application that uses the C SDK as well as SDKs for many popular languages but what can you do if the device you want to collect data on is so small that it need a very lightweight data delivery method. Normally you would consider using the REST web service interface and writing your own custom client to post your data by there is an alternative, MQTT. MQTT is a lightweight protocol that can be used from an Arduino with an Ethernet Shield that can stream real time data directly to ThingWorx by installing the MQTT Marketplace Extension on your server.

To learn more about how this kind of solution worked, I created this slide deck while building a hardware example:

DeliveringArduinoDataToThingworx.pdf

Hopefully, it can help others out who want to create this kind of solution as well.

10 REPLIES 10

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

Hi Bill, does it work to send data to Arduino too or only to get data from it?

Cheers

Ewerton

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

See: Arduino Client for MQTT

See: Arduino | MQTT

It appears you need certain Ethernet or WiFi Shields to accomplish the needed connection to the broker.

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

You can both pushing and subscribe to MQTT topics using the Arduino MQTT library.

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

Yes. A standard Arduino does not have any network support. You would need to have an ethernet shield to do this particular example.

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

Thanks Bill/Bruce.. I will pass this info on and see if we move fwd .

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

Great,What if i need to send using GPRS modem

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

Can anyone provide his Arduino Libraries used for this Project? I have a Problem with "SRAM" and I can not fix it...

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

Arduino MQTT Library for SIM800 GSM Modem | Random Codes - Elementz Tech Blog

talks about an MQTT library for use with the SIM800.

Re: Delivering Arduino Collected Data to ThingWorx using MQTT

Hi Bill, what possible changes would have to be made if I want to do it with arduino wireless shield.