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

ble_nus stops working after central connection

Hi,

I just found what looks like a bug in ble_nus.c in SDK12 - not sure how to report it so I'm just doing it as a question/answer combo.

Basically:

  • Connect to nRF5x normally (treating it as a peripheral)
  • ble_nus_string_send works great
  • Use nRF5x to connect in central mode to something else
  • disconnect from central mode
  • ble_nus_string_send responds with NRF_ERROR_INVALID_STATE
Related