This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error: invalid state upon disconnect

hiii.....

am doing a project for implementing broadcasting while in active connection... i hv broadcastd datas successfully but the problem is when i disconnect the connection it stops advertising...actually it shuld advertise.. ryt? it shows an error INVALID_STATE .error is in the line " err_code = sd_ble_gap_adv_start(&m_adv_params);"..i dnt knw wat is d problem... help me to solv it...

Parents
  • Which chip, SDK and Softdevice are you using?

    Are you sure that you have disconnected once you try to start the connectable advertising again? What reason do you get from the ble_gap_evt_disconnect? Are you disconnecting from the peripheral or are you disconnecting from the central side?

Reply
  • Which chip, SDK and Softdevice are you using?

    Are you sure that you have disconnected once you try to start the connectable advertising again? What reason do you get from the ble_gap_evt_disconnect? Are you disconnecting from the peripheral or are you disconnecting from the central side?

Children
No Data
Related