Lua/AAF: Identify which kind of WAN connection is currently active in the device

I would like to identify from inside the Lua code of an AAF app:

  • The current IP used by the active WAN interface

  • What kind of WAN interface is currently active (Ethernet? Cell? Wifi?)

I assume devicetree is to be used, but I cannot find any documentation about the available data there.

as a reference, as noone from Semtech could answer: there’s no identifiable devicetree entry that shows this: the only reliable way I found is to check the content of /proc/net/routeand match the interface name of the default route; if wwan*, it’s cell.