diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-13 15:38:33 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-13 17:36:06 +0100 |
commit | 248cd55f0e5d2a125569f9e7974a43d6b895d6de (patch) | |
tree | f420de376bd3d066d286ab18c30420670e3e699a /examples/network-scan-python/README | |
parent | f9e26fb54b96921fcb5f3cc7647ba4c4ff14085f (diff) |
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
Diffstat (limited to 'examples/network-scan-python/README')
-rw-r--r-- | examples/network-scan-python/README | 17 |
1 files changed, 17 insertions, 0 deletions
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 |