Get device STA IP

Is there an mgos call to get a device’s connected STA IP address?
Is there any example code?

Thanks,

JSW

mgos_net_get_ip_info.
Example.