diff options
| author | JF <jf@codingfield.com> | 2020-03-25 20:23:40 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-03-25 20:23:40 (GMT) |
| commit | 68240704c7a60534342cfc0157564f11cf82d9d8 (patch) | |
| tree | 8472af61a5fa8a99ce5549f2de73b47f73cf41b6 /src/BLE/BleManager.h | |
| parent | 7e9a7e4d5fa0f55b43180600d499f1d0ce6aded1 (diff) | |
Add support for BLE notification (ANS client).
Work In Progress!!!
Diffstat (limited to 'src/BLE/BleManager.h')
| -rw-r--r-- | src/BLE/BleManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/BLE/BleManager.h b/src/BLE/BleManager.h index 4424d66..e3b9faf 100644 --- a/src/BLE/BleManager.h +++ b/src/BLE/BleManager.h @@ -31,6 +31,8 @@ extern "C" { #define NEXT_CONN_PARAMS_UPDATE_DELAY 30000 /* Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */ #define MAX_CONN_PARAMS_UPDATE_COUNT 3 /* Number of attempts before giving up the connection parameter negotiation. */ +#define MESSAGE_BUFFER_SIZE 18 /**< Size of buffer holding optional messages in notifications. */ +#define BLE_ANS_NB_OF_CATEGORY_ID 10 /**< Number of categories. */ void ble_manager_init(); void ble_manager_start_advertising(void *p_erase_bonds); @@ -41,6 +43,8 @@ void ble_manager_set_new_time_callback(void (*OnNewTime)(current_time_char_t* cu void ble_manager_set_ble_disconnection_callback(void (*OnBleDisconnection)()); void ble_manager_set_ble_connection_callback(void (*OnBleConnection)()); +void ble_manager_set_new_notification_callback(void (*OnNewNotification)(const char* message, uint8_t size)); + #ifdef __cplusplus } |
