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

How to get softdevice state in my application

I'd like to get the current connection state eg:

result = get_connection_state()

if(result == BLE_GAP_EVT_CONNECTED) doSomthing();

Is there such a function available ?

thanks,