Cellular
localIP()
Since 0.5.0:
Cellular.localIP()
returns the local (private) IP address assigned to the device as an IPAddress
.
// EXAMPLE
SerialLogHandler logHandler;
void setup() {
// Prints out the local (private) IP over Serial
Log.info("localIP: %s", Cellular.localIP().toString().c_str());
}