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

Can ble_nus_string_send() be called from a TWI callback?

Calling ble_nus_string_send() from within a TWI callback (case NRF_DRV_TWI_EVT_DONE) is performing a reset on my PCA10028 (nRF51422). It works fine from the main loop.

Am I right in assuming that BLE operations cannot be issued from such callbacks? But on the other hand, the ble_app_uart example issues the same call within the uart handler (APP_UART_DATA_READY).

I'd appreciate any clarification on the above.

Thanks

Related