
Otherwise we get the following exception: Traceback (most recent call last): File "/root/network-scan-python", line 57, in <module> networks = modem3gpp.scan_sync() gi.repository.GLib.Error: mm_core_error_quark: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.WrongState: Cannot scan networks: not enabled yet (8)
The network-scan-python program makes use of the 'libmm-glib' library through GObject Introspection to talk to ModemManager. The program will: * Detect whether ModemManager is found in the bus * Loop through each modem found in the system, running a network scan for each The output will look like this: $ ./network-scan-python Note that the program requires ModemManager and libmm-glib to be installed in the system and the introspection typelibs available in the standard paths. Have fun!