From ebff76cfaa0e5809ef5883d7588f55dc3e11f828 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 10 Apr 2014 19:05:13 +0200 Subject: examples: add modem watcher example in python --- examples/modem-watcher-python/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/modem-watcher-python/README (limited to 'examples/modem-watcher-python/README') diff --git a/examples/modem-watcher-python/README b/examples/modem-watcher-python/README new file mode 100644 index 00000000..f2b58e69 --- /dev/null +++ b/examples/modem-watcher-python/README @@ -0,0 +1,22 @@ + +The modem-watcher-python program makes use of the 'libmm-glib' library through +GObject Introspection to talk to ModemManager. + +The program will just print in stdout whenever: + * ModemManager is found in the bus + * ModemManager is lost in the bus + * A new modem is added to ModemManager + * A modem is removed from ModemManager + +The output will look like this: + +$ ./modem-watcher-python +[ModemWatcher] ModemManager service is available in bus +[ModemWatcher] Vodafone (Huawei) (K3772) modem managed by ModemManager [861320000017897]: /org/freedesktop/ModemManager1/Modem/0 +[ModemWatcher] modem unmanaged by ModemManager: /org/freedesktop/ModemManager1/Modem/0 +[ModemWatcher] ModemManager service not available in bus + +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