Introduction

Publishes sensor data to Xively and subscribes to changes.

Xively (https://xively.com/) is a cloud-based service on which you can publish sensor data. Xively offers a number of libraries so you can easily develop applications to visualize and interact with the data stored on Xively.

The Xively sample application inside the SmartMesh SDK:

It connects to:

Running

You can run the Xively application:

Description

The Xively sample application connects to your SmartMesh IP Manager, and subscribes for temperature data. To be able to send that information to the Xively service, it requres you to enter a Xively Master API key.

You must first create a developer account with Xively at http://www.xively.com.

One you have created that account, log into http://www.xively.com and create a Master API key:

Copy that Master key.

Make sure that you have a SmartMesh IP network running with one or more SmartMesh IP Motes running the default firmware in master mote.

To publish data to Xively:

 

To see your data:
  • Log into http://www.xively.com, and navigate to Web ToolsManage.
  • A new product was created entitled "SmartMesh IP Starter Kit".
  • Clicking on that product lists the devices in your SmartMesh IP network.
  • Each device has two datastreams associated:
    • the "temperature" datastream holds the timeline of the temperature published.

    • the "led" datastream is used for actuating the mote's LED.


To actuate the mote's LED:

 

On the mote, make sure the LED_EN jumper is in place.

 

  • On a mote's device page on http://www.xively.com, click on the LED datastream.
  • This causes the LED on that board to switch on.
  • Repeat the steps above and enter 0 to switch the LED off.