Geo beacon for VF.
Dependencies: MMA8452 aconno_bsp adc52832_common
Diff: AckService.h
- Revision:
- 25:8ac3ff431ab1
- Parent:
- 18:e844d3e6ab88
- Child:
- 27:2c67f07590fd
--- a/AckService.h Wed Aug 30 08:10:53 2017 +0000 +++ b/AckService.h Wed Sep 06 10:41:09 2017 +0000 @@ -15,9 +15,13 @@ GattService AckService(ACK_SERVICE_UUID, charTable, sizeof(charTable)/sizeof(GattCharacteristic *)); ble.addService(AckService); // Add service in the BLE } - void updateMacAddress(uint8_t *MacAddress){ + inline void updateMacAddress(uint8_t *MacAddress){ ble.gattServer().write(MAC.getValueHandle(), MacAddress, MAC_ADDR_SIZE_B); } + + inline GattAttribute::Handle_t getACKCharacteristicHandle(){ + return ACK.getValueHandle(); + } private: BLEDevice &ble; // Create new characteristic