sps_client_indicate_data_rx

2 posts / 0 new
Last post
prasanth.velliy...
Offline
Last seen:1 year 9 months ago
Joined:2016-02-18 12:18
sps_client_indicate_data_rx

In gattc_event_ind_handler ,
else (spsc_env->sps.chars[SPSC_SRV_TX_DATA_CHAR].val_hdl == param->handle) part ,
{
sps_client_indicate_data_rx(spsc_env, param->value, param->length);

}
is executing whenever DSPS_DEVICE's are transmitting data , at what condition's above else part will run and will not run ?? , also why SPSC_SRV_TX_DATA_CHAR this is mentioned in this handler ??

Device:
JK_Dialog
Offline
Last seen:2 weeks 4 days ago
Staff
Joined:2016-08-22 23:07
Hi, please refer to RW-BLE

Hi, please refer to RW-BLE-GATT-IS, in particular, GATTC_EVENT_IND. SPSC_SRV_TX_DATA_CHAR is written from the perspective of the server (to avoid confusion). The TX Data characteristic is a notification, so when the client receives data, this triggers a gattc_event_ind. The gattc_event_ind_handler then determines if this data that was received was sent from the TX Data characteristic.