diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-04-11 09:27:51 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-04-11 10:31:02 +0200 |
commit | ae99c452eb46d0f0c36a8e44e627994ce261a726 (patch) | |
tree | e793f373e790498dd324750b24d88f563c5c6507 /examples/modem-watcher-javascript/README | |
parent | ebff76cfaa0e5809ef5883d7588f55dc3e11f828 (diff) |
examples: add modem watcher example in JS
Diffstat (limited to 'examples/modem-watcher-javascript/README')
-rw-r--r-- | examples/modem-watcher-javascript/README | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/modem-watcher-javascript/README b/examples/modem-watcher-javascript/README new file mode 100644 index 00000000..db77683d --- /dev/null +++ b/examples/modem-watcher-javascript/README @@ -0,0 +1,22 @@ + +The modem-watcher-javascript 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-javascript +[ModemWatcher] ModemManager service is available in bus +[ModemWatcher] Vodafone (Huawei) (K3772) modem managed by ModemManager [861320000017897]: /org/freedesktop/ModemManager1/Modem/1 +[ModemWatcher] modem unmanaged by ModemManager: /org/freedesktop/ModemManager1/Modem/1 +[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 |