Resetting NUS - USB to resume scan

I have modified the NUS-CDC application for the Dongle so that I can now scan, report available Peripherals, and connect to a specific one. I need to be able to cleanly disconnect the BLE connection so that I can resume scanning, without dropping the USB connection. I have tried several different approaches, none of which work thus far. Surely someone has already done this; I hate re-inventing the wheel.

Parents
  • Oh, you are using the nRF5 SDK, and not the nRF Connect SDK (NCS), based on the API that you mention, sd_...().

    That is fine. Shouldn't make a difference.

    I am glad to hear that you got it working!

    Yes, there are some options that you can use to automatically start scanning after a disconnect event, if I recall correctly. 

    Best regards,

    Edvin

Reply
  • Oh, you are using the nRF5 SDK, and not the nRF Connect SDK (NCS), based on the API that you mention, sd_...().

    That is fine. Shouldn't make a difference.

    I am glad to hear that you got it working!

    Yes, there are some options that you can use to automatically start scanning after a disconnect event, if I recall correctly. 

    Best regards,

    Edvin

Children
No Data
Related