aboutsummaryrefslogtreecommitdiff
path: root/examples/modem-watcher-python/README
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-04-10 19:05:13 +0200
committerAleksander Morgado <aleksander@aleksander.es>2014-04-11 10:31:01 +0200
commitebff76cfaa0e5809ef5883d7588f55dc3e11f828 (patch)
treefeee88d7ba25f780d705cf0f5cf76f3f80ef481c /examples/modem-watcher-python/README
parent79b34b77b4703eaaf7e007c294325a660a51bc9e (diff)
examples: add modem watcher example in python
Diffstat (limited to 'examples/modem-watcher-python/README')
-rw-r--r--examples/modem-watcher-python/README22
1 files changed, 22 insertions, 0 deletions
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