Arm Mbed OS support forum

How to access CellularNetwork?


I would like to access cellular registration information from my application, such as signal quality, cell ID, radio access technology etc. These information are conveniently stored in CellularNetwork class. Even though being mentioned as a public API in the documentation, I could not find how to get access to the instance. I create my connection using NetworkInterface and it is possible to retrieve an instance of CellularContext or CellularDevice, neither of which provide access to the CellularNetwork instance. Is this overlooked in the API or am I missing something?

There is previous discussion on this issue that I had commented on. Essentially you have to hack it by casting it up and down.

Solved here: