A Simple Example (Arduino, MQTT, m2m.io)

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.
ORIGINAL POST
By 2lemetry
details

URL

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
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 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.

  • https://2lemetry.atlassian.net/wiki/display/KB/Connect+your+Arduino+to+ThingFabric

TAG : 201304, W5100, Arduino, IoT, MQTT, ThingFabric, WIZnet

URL

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
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 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.

  • https://2lemetry.atlassian.net/wiki/display/KB/Connect+your+Arduino+to+ThingFabric

TAG : 201304, W5100, Arduino, IoT, MQTT, ThingFabric, WIZnet

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY
Reusable S/W