Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ble/services/DeviceInformationService.h
- Revision:
- 1156:e1ea38b576c6
- Parent:
- 1155:e28c7aac64ab
- Child:
- 1179:4ab722f8dca0
--- a/ble/services/DeviceInformationService.h Wed Apr 06 19:14:34 2016 +0100
+++ b/ble/services/DeviceInformationService.h Wed Apr 06 19:14:38 2016 +0100
@@ -28,21 +28,21 @@
class DeviceInformationService {
public:
/**
- * @brief Device Information Service Constructor: copies device-specific information
+ * @brief Device Information Service Constructor: copies device-specific information
* into the BLE stack.
*
- * @param[ref] _ble
- * BLE object for the underlying controller.
+ * @param[in] _ble
+ * A reference to a BLE object for the underlying controller.
* @param[in] manufacturersName
* The name of the manufacturer of the device.
* @param[in] modelNumber
* The model number that is assigned by the device vendor.
* @param[in] serialNumber
- * The serial number for a particular instance of the device.
+ * The serial number for a particular instance of the device.
* @param[in] hardwareRevision
* The hardware revision for the hardware within the device.
* @param[in] firmwareRevision
- * The device's firmware version.
+ * The device's firmware version.
* @param[in] softwareRevision
* The device's software version.
*/
@@ -104,12 +104,34 @@
}
protected:
+ /**
+ * A reference to the BLE instance object to which the services and
+ * characteristics will be added.
+ */
BLE &ble;
+ /**
+ * BLE characterising to allow BLE peers access to the manufacturer's name.
+ */
GattCharacteristic manufacturersNameStringCharacteristic;
+ /**
+ * BLE characterising to allow BLE peers access to the model number.
+ */
GattCharacteristic modelNumberStringCharacteristic;
+ /**
+ * BLE characterising to allow BLE peers access to the serial number.
+ */
GattCharacteristic serialNumberStringCharacteristic;
+ /**
+ * BLE characterising to allow BLE peers access to the hardware revision string.
+ */
GattCharacteristic hardwareRevisionStringCharacteristic;
+ /**
+ * BLE characterising to allow BLE peers access to the firmware revision string.
+ */
GattCharacteristic firmwareRevisionStringCharacteristic;
+ /**
+ * BLE characterising to allow BLE peers access to the software revision string.
+ */
GattCharacteristic softwareRevisionStringCharacteristic;
};