mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 07:21:20 +00:00
check client handler before calling it att_server
This commit is contained in:
parent
dfc6ff89b3
commit
5b09aef38a
@ -87,6 +87,9 @@ static timer_source_t att_handle_value_indication_timer;
|
|||||||
static btstack_packet_handler_t att_client_packet_handler = NULL;
|
static btstack_packet_handler_t att_client_packet_handler = NULL;
|
||||||
|
|
||||||
static void att_handle_value_indication_notify_client(uint8_t status, uint16_t client_handle, uint16_t attribute_handle){
|
static void att_handle_value_indication_notify_client(uint8_t status, uint16_t client_handle, uint16_t attribute_handle){
|
||||||
|
|
||||||
|
if (!att_client_packet_handler) return;
|
||||||
|
|
||||||
uint8_t event[7];
|
uint8_t event[7];
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
event[pos++] = ATT_HANDLE_VALUE_INDICATION_COMPLETE;
|
event[pos++] = ATT_HANDLE_VALUE_INDICATION_COMPLETE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user