expose battery level via the standard BLE battery service

This commit is contained in:
geeksville
2020-06-22 10:04:26 -07:00
parent c5851a4a0c
commit 60470211e5
3 changed files with 15 additions and 5 deletions

View File

@@ -35,5 +35,8 @@ BLECharacteristic *addBLECharacteristic(BLECharacteristic *c);
/// Add a characteristic that we will delete when we restart
BLEDescriptor *addBLEDescriptor(BLEDescriptor *c);
/// Given a level between 0-100, update the BLE attribute
void updateBatteryLevel(uint8_t level);
/// Any bluetooth objects you allocate _must_ come from this pool if you want to be able to call deinitBLE()
extern SimpleAllocator btPool;