only notify needed (#1562)

* only notify needed

* added docs
This commit is contained in:
Peli de Halleux
2018-10-30 19:57:01 -07:00
committed by GitHub
parent 198f423f5a
commit 7bc7d2f2ff
2 changed files with 20 additions and 1 deletions

View File

@ -7,7 +7,7 @@ BLEHF2Service::BLEHF2Service(BLEDevice &_ble) :
ble(_ble)
{
GattCharacteristic txCharacteristic(BLEHF2TxCharacteristicUUID, (uint8_t *)&txCharacteristicMessage, 0,
sizeof(txCharacteristicMessage), GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY);
sizeof(txCharacteristicMessage), GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY);
// Initialise our characteristic values.
memset(&txCharacteristicMessage, 0, sizeof(txCharacteristicMessage));