[FL-2441] BLE add Power state, fix double connection (#1238)

* battery service: add power state charachteristic
* bt: update power state on charging / discharging events
* ble config: support only one connection
* bt: always update flow control characteristic
* bt: fix power state update
* bt: simplify updating power state
* bt: don't update flow control charachteristic
This commit is contained in:
gornekich
2022-05-24 16:42:02 +03:00
committed by GitHub
parent f90c9320d9
commit 2017baac48
7 changed files with 115 additions and 11 deletions

View File

@@ -21,6 +21,7 @@
typedef enum {
BtMessageTypeUpdateStatus,
BtMessageTypeUpdateBatteryLevel,
BtMessageTypeUpdatePowerState,
BtMessageTypePinCodeShow,
BtMessageTypeKeysStorageUpdated,
BtMessageTypeSetProfile,