ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Embed: (wiki syntax)

« Back to documentation index

DeviceInformationService Class Reference

DeviceInformationService Class Reference

BLE Device Information Service Service: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.device_information.xml Manufacturer Name String Char: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.manufacturer_name_string.xml. More...

#include <DeviceInformationService.h>

Public Member Functions

 DeviceInformationService (BLE &_ble, const char *manufacturersName=NULL, const char *modelNumber=NULL, const char *serialNumber=NULL, const char *hardwareRevision=NULL, const char *firmwareRevision=NULL, const char *softwareRevision=NULL, const PnPID_t *pnpID=NULL)
 Device Information Service Constructor: copies device-specific information into the BLE stack.

Protected Attributes

BLE & ble
 A reference to the BLE instance object to which the services and characteristics will be added.
GattCharacteristic manufacturersNameStringCharacteristic
 BLE characterising to allow BLE peers access to the manufacturer's name.
GattCharacteristic modelNumberStringCharacteristic
 BLE characterising to allow BLE peers access to the model number.
GattCharacteristic serialNumberStringCharacteristic
 BLE characterising to allow BLE peers access to the serial number.
GattCharacteristic hardwareRevisionStringCharacteristic
 BLE characterising to allow BLE peers access to the hardware revision string.
GattCharacteristic firmwareRevisionStringCharacteristic
 BLE characterising to allow BLE peers access to the firmware revision string.
GattCharacteristic softwareRevisionStringCharacteristic
 BLE characterising to allow BLE peers access to the software revision string.

Detailed Description

BLE Device Information Service Service: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.device_information.xml Manufacturer Name String Char: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.manufacturer_name_string.xml.

Definition at line 39 of file DeviceInformationService.h.


Constructor & Destructor Documentation

DeviceInformationService ( BLE &  _ble,
const char *  manufacturersName = NULL,
const char *  modelNumber = NULL,
const char *  serialNumber = NULL,
const char *  hardwareRevision = NULL,
const char *  firmwareRevision = NULL,
const char *  softwareRevision = NULL,
const PnPID_t *  pnpID = NULL 
)

Device Information Service Constructor: copies device-specific information into the BLE stack.

Parameters:
[in]_bleA reference to a BLE object for the underlying controller.
[in]manufacturersNameThe name of the manufacturer of the device.
[in]modelNumberThe model number that is assigned by the device vendor.
[in]serialNumberThe serial number for a particular instance of the device.
[in]hardwareRevisionThe hardware revision for the hardware within the device.
[in]firmwareRevisionThe device's firmware version.
[in]softwareRevisionThe device's software version.

Definition at line 60 of file DeviceInformationService.h.


Field Documentation

BLE& ble [protected]

A reference to the BLE instance object to which the services and characteristics will be added.

Definition at line 150 of file DeviceInformationService.h.

GattCharacteristic firmwareRevisionStringCharacteristic [protected]

BLE characterising to allow BLE peers access to the firmware revision string.

Definition at line 170 of file DeviceInformationService.h.

GattCharacteristic hardwareRevisionStringCharacteristic [protected]

BLE characterising to allow BLE peers access to the hardware revision string.

Definition at line 166 of file DeviceInformationService.h.

GattCharacteristic manufacturersNameStringCharacteristic [protected]

BLE characterising to allow BLE peers access to the manufacturer's name.

Definition at line 154 of file DeviceInformationService.h.

GattCharacteristic modelNumberStringCharacteristic [protected]

BLE characterising to allow BLE peers access to the model number.

Definition at line 158 of file DeviceInformationService.h.

GattCharacteristic serialNumberStringCharacteristic [protected]

BLE characterising to allow BLE peers access to the serial number.

Definition at line 162 of file DeviceInformationService.h.

GattCharacteristic softwareRevisionStringCharacteristic [protected]

BLE characterising to allow BLE peers access to the software revision string.

Definition at line 174 of file DeviceInformationService.h.