/*Host*/ void GATT_Notification_CB(uint16_t attr_handle, uint8_t attr_len, uint8_t *attr_value) { if (BLE_Role == CLIENT) { if(attr_handle == (notify_read_handle+1)) { ble_host_on_message(attr_value[0], attr_value[1], attr_value+2); } } else { } }
/*gatt notification call back*/ void GATT_Notification_CB(uint16_t attr_handle, uint8_t attr_len, uint8_t *attr_value) { #if defined (CLIENT_ROLE) || defined (CLIENT_SERVER_ROLE) if (BLE_Role & CLIENT) { if(attr_handle == (notify_read_handle+1)) { ble_host_on_message(attr_value[0], attr_value[1], attr_value+2); } } else { } #endif }