This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_ble_gatts_hvx() return NRF_SUCCESS,but The data obtained by the app is wrong

hi,

The data is sent to the app by sd_ble_gatts_hvx(), but the data obtained by this app is wrong.

When salve sends a byte, the data obtained by the app is always 0,but the data I sent is not 0.And Event BLE_GATTS_EVT_HVN_TX_COMPLETE is also successfully triggered. 

Meanwhile,I checked the value of the handle, the value is 0x0000.And  If the value of "ble_gatts_hvx_params_t.p_len" is changed, the app can get incorrect data of different lengths.   

The documents were not found. If I want to use this function correctly, what needs to be noticed.

Related