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.
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 project uses ThingFabric platform. In detail, please refer Connecting to ThingFabric with an Arduino.
You can get all source code and all detail about the project from below link.
TAG : 201304, W5100, Arduino, IoT, MQTT, ThingFabric, WIZnet