BLE Device Information


BLE provides the Device Information service, used for fetching information about the Bluetooth device.

How To Connect

For information on how to connect to BLE devices, please see the BLE platform page.

How To Use

A short example of getting the manufacturer name from a BLE device:

var Cylon = require('cylon');

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

  devices: {
    deviceInfo: { driver: 'ble-device-information' }
  },

  display: function(err, data) {
    if (!!err) {
      console.log("Error: ", err);
      return;
    }

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

  work: function(my) {
    my.deviceInfo.getManufacturerName(my.display);
  }
}).start();

Commands

getModelNumber

Gets the model number of the BLE device

Params

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

Returns

  • (undefined)

getSystemId

Gets the system ID of the BLE device

Params

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

Returns

  • (undefined)

getHardwareRevision

Gets the hardware revision of the BLE device

Params

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

Returns

  • (undefined)

getFirmwareRevision

Gets the firmware revision of the BLE device

Params

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

Returns

  • (undefined)

getManufacturerName

Gets the manufacturer name of the BLE device

Params

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

Returns

  • (undefined)

getPnPId

Gets the PnP ID of the BLE device

Params

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

Returns

  • (undefined)

Compatibility