Hello,
I receive NRF_ERROR_INVALID_STATE error quite a few times because my own state handling is still a little buggy. I want to find all these errors. What would be the best way to debug this. Is there any possibility to read the current state of the softdevice? I am currently calling sd_ble_gattc_characteristics_discover after I received the BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP event. This results in an invalid state and I am not quite sure why this would happen. I would be very interested in getting the current state and maybe a possibility if advertising and/or scanning are currently switched on or if a connection is in progress,etc... The more information I can get from the SoftDevice (S130 0.9-alpha), the better.
Thanks a lot, Marius