I need to write to a variable when a particular characteristic is written (from my "on_write" function), and be able to read this variable from main context.
From the SoftDevice specification: "SoftDevice API functions can only be called from lower interrupt priority when compared to the SVC priority"
So my questions is, can I use sd_mutex.. for this?
Or will the interrupt priority level in functions called from my softdevice event handler (set by softdevice_ble_evt_handler_set() ) be too high?