This project is a simple example of using MQTT and the m2m.io platform, but it is a good illustration of how we retrieve sensor values from a cloud-hosted API with Arduino Ethernet Shield.
This project is a simple example of using MQTT and the m2m.io platform, but it is a good illustration of how we retrieve sensor values from a cloud-hosted API with Arduino Ethernet Shield.
The original links are http://m2mio.tumblr.com/post/30048662088/a-simple-example-arduino-mqtt-m2m-io or https://2lemetry.atlassian.net/wiki/display/KB/Connect+your+Arduino+to+ThingFabric.
The authors is introducing his project as below.
2lemetry
There are four main tasks the Arduino software needs to take care of for this example:
Gather light sensor readings periodically
Publish sensor readings via MQTT
Listen for commands via MQTT
Control the LED based on a setpoint
This source code requires both the Ethernet library and MQTT Client Library to be installed in your Arduino library folder. See an example here on how to install Arduino libraries – It’s easy!
This project is a simple example of using MQTT and the m2m.io platform, but it is a good illustration of how we retrieve sensor values from a cloud-hosted API with Arduino Ethernet Shield.
The original links are http://m2mio.tumblr.com/post/30048662088/a-simple-example-arduino-mqtt-m2m-io or https://2lemetry.atlassian.net/wiki/display/KB/Connect+your+Arduino+to+ThingFabric.
The authors is introducing his project as below.
2lemetry
There are four main tasks the Arduino software needs to take care of for this example:
Gather light sensor readings periodically
Publish sensor readings via MQTT
Listen for commands via MQTT
Control the LED based on a setpoint
This source code requires both the Ethernet library and MQTT Client Library to be installed in your Arduino library folder. See an example here on how to install Arduino libraries – It’s easy!
COMMENTS