summaryrefslogtreecommitdiff
path: root/src/BLE/BleManager.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-01-12 15:39:03 (GMT)
committerJF <jf@codingfield.com>2020-01-12 15:39:03 (GMT)
commit6abf12ffb7a26e8d42b1dcb41b1fa9bcccd3ac16 (patch)
tree8c0900f2cd0d51da67b5ed14ab5dec224f54fe5e /src/BLE/BleManager.h
parent3c29a11c78c9cd06be8ccedd9a067cd129b85f28 (diff)
Detect BLE disconnection (in addition to BLE connection) and update the display accordingly.
Diffstat (limited to 'src/BLE/BleManager.h')
-rw-r--r--src/BLE/BleManager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/BLE/BleManager.h b/src/BLE/BleManager.h
index b664bac..13b12a6 100644
--- a/src/BLE/BleManager.h
+++ b/src/BLE/BleManager.h
@@ -35,8 +35,9 @@ void ble_manager_init();
void ble_manager_start_advertising(void *p_erase_bonds);
// TODO use signals from RTOS to notify new time
-void ble_manager_set_callback(void (*OnNewTime)(current_time_char_t* currentTime));
-
+void ble_manager_set_new_time_callback(void (*OnNewTime)(current_time_char_t* currentTime));
+void ble_manager_set_ble_disconnection_callback(void (*OnBleDisconnection)());
+void ble_manager_set_ble_connection_callback(void (*OnBleConnection)());
#ifdef __cplusplus