2020-04-23 01:23:02 -04:00
|
|
|
#ifndef __BLE_H_H
|
|
|
|
#define __BLE_H_H
|
|
|
|
|
|
|
|
typedef int (*event_callback_t)(struct ble_gap_event *, void *);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint32_t *handle;
|
|
|
|
event_callback_t callback;
|
|
|
|
} event_callback_handle_t;
|
|
|
|
|
2020-10-26 22:12:25 -04:00
|
|
|
int8_t ble_send_notification(void *buf, uint8_t size);
|
2021-09-08 23:41:24 -04:00
|
|
|
void ble_init(char *name);
|
2020-04-23 01:23:02 -04:00
|
|
|
|
|
|
|
#endif
|