GAPM_CANCEL GAP_ERR_ADV_DATA_INVALID app_advertise_stop_op

app_advertise_stop_op() returns GAP_ERR_ADV_DATA_INVALID

Thu, 2017-10-05 11:13--Sebastian Edman

Hi,

we try to send two advertisements directly after eachother since we need to transmit more data than can fit in one advertisement. We do it the following way.

1. trigger by an external interrupt, collects data.
2. when finished, a message is transmitted using app_advertise_start_msg_send();
3. In the .app_on_ble_powered callback we start a timer 30ms.
4. Upon execution of timer we call app_advertise_stop_op();
5. We then get a .app_on_adv_nonconn_complete callback with status GAP_ERR_ADV_DATA_INVALID, why is this, what is invalid?

Subscribe to RSS - GAPM_CANCEL GAP_ERR_ADV_DATA_INVALID app_advertise_stop_op