WICED Sense


WICED Sense

How To Connect

The WICED Sense is a Bluetooth Low-Energy device, and is paired and connected as with any other BLE device. For more info, check out the BLE platform page.

How To Use

Here's a short example of getting data from the WICED Sense with Cylon:

var Cylon = require('cylon');

Cylon.robot({
  connections: {
    bluetooth: { adaptor: 'ble', uuid: '207377654321' }
  },

  devices: {
    wiced: { driver: 'wiced-sense' }
  },

  work: function(my) {
    my.wiced.getData(function(err, data) {
      if (!!err) {
        console.log("Error: ", err);
        return;
      }

      console.log("Data: ", data);
    });
  }
}).start();

Commands

getData

Gets data from the WICED Sense device.

This includes the following sensor data:

  • temperature
  • pressure
  • magnetometer
  • humidity
  • gyroscope
  • accelerometer

Params

  • callback (Function) to be triggered when data is retrieved

Returns

  • (undefined)

Compatibility