1
0
forked from me/IronOS

Split handlers out

This commit is contained in:
Ben V. Brown
2022-11-20 17:59:25 +11:00
parent 60a3f8320e
commit 493af2ae1e
4 changed files with 136 additions and 54 deletions

View File

@@ -12,21 +12,20 @@ NOTES
#include "ble_config.h"
//read value handle offset 2
// read value handle offset 2
#define BT_CHAR_BLE_TP_RD_ATTR_VAL_INDEX (2)
//write value handle offset 4
// write value handle offset 4
#define BT_CHAR_BLE_TP_WR_ATTR_VAL_INDEX (4)
//indicate value handle offset 6
// indicate value handle offset 6
#define BT_CHAR_BLE_TP_IND_ATTR_VAL_INDEX (6)
//notity value handle offset 9
// notity value handle offset 9
#define BT_CHAR_BLE_TP_NOT_ATTR_VAL_INDEX (9)
#ifdef __cplusplus
extern "C" {
#endif
void ble_tp_init();
void bt_enable_cb(int err);
void ble_tp_init();
void bt_enable_cb(int err);
struct bt_gatt_attr *get_attr(u8_t index);
#ifdef __cplusplus