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:
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.