I’m trying to register a event handler for NetRegState changes and then using le_mrc_SetRadioPower(LE_OFF) and le_mrc_SetRadioPower(LE_ON) to turn the modem off and on respectively. But I don’t see that my void NetRegStateHandler (le_mrc_NetRegState_t state, void* contextPtr) is called even though I’m certain that le_mrc_AddNetRegStateEventHandler(NetRegStateHandler, NULL); has been called.
I have turned off sandboxing for my app since I will make some IPC with other (external) applications at some point. Don’t know it that has something to say.
Anyone knows what I could do to make this work, it could be great to avoid having to poll that information.