From 248cd55f0e5d2a125569f9e7974a43d6b895d6de Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 13 Dec 2019 15:38:33 +0100 Subject: examples: new network-scan-python example This is currently not working completely ok because python doesn't know how to free the GList of MMModem3gppNetwork elements. /org/freedesktop/ModemManager1/Modem/1: starting network scan... 21403: Orange - Orange (unknown, forbidden) 21401: vodafone ES - vodafone ES (unknown, forbidden) 21403: Orange - Orange (unknown, forbidden) 21403: Orange - Orange (unknown, forbidden) 21401: vodafone ES - vodafone ES (unknown, forbidden) 21404: Yoigo - Yoigo (unknown, forbidden) 21401: vodafone ES - vodafone ES (unknown, forbidden) 21404: Yoigo - Yoigo (unknown, forbidden) 21407: Movistar - Movistar (unknown, available) 21407: Movistar - Movistar (unknown, available) 21407: Movistar - Movistar (unknown, current) free(): invalid pointer Aborted --- examples/network-scan-python/README | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/network-scan-python/README (limited to 'examples/network-scan-python/README') diff --git a/examples/network-scan-python/README b/examples/network-scan-python/README new file mode 100644 index 00000000..08e5e212 --- /dev/null +++ b/examples/network-scan-python/README @@ -0,0 +1,17 @@ + +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! \ No newline at end of file -- cgit v1.2.3-70-g09d2