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

Trouble with bluetooth communication with ble_nus_string_send

So I've been trying to integrate the ble_nus part of the ble_app_uart example into another project. All inits and sdk_config options seem to be the same.

Still, whenever I send a message with ble_nus_send_string, the program freezes when it returns to the main loop.

One difference from the ble_app_uart example is that the ble_nus_on_ble_evt function seems to run four times instead just once, as it does in the example. I haven't been able to figure out why.

Related