aboutsummaryrefslogtreecommitdiff
path: root/examples/sms-send-python/README
diff options
context:
space:
mode:
authorDan Williams <dan@bigw.org>2025-02-18 15:59:58 +0000
committerDan Williams <dan@bigw.org>2025-02-18 15:59:58 +0000
commit029a8cd11a0d181403b600af9a9979ef5e1eea13 (patch)
tree570c976270bf174df86badc42bd13a3e1a7eb333 /examples/sms-send-python/README
parentbc7198df8a3217d29c936fccde66820774228e30 (diff)
parentc320e50753e544e3277280ee53b10eadcdd46fdb (diff)
Merge request !1284 from 'example-sms-watch-python'
examples: add sms-watch-python https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1284
Diffstat (limited to 'examples/sms-send-python/README')
-rw-r--r--examples/sms-send-python/README20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/sms-send-python/README b/examples/sms-send-python/README
new file mode 100644
index 00000000..3927c743
--- /dev/null
+++ b/examples/sms-send-python/README
@@ -0,0 +1,20 @@
+
+The sms-send-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
+ * Prepare SMS properties object with the provided Number and Text.
+ * Loop through each modem found in the system, and for each:
+ ** Create a SMS
+ ** Send the SMS
+
+The output will look like this:
+
+$ ./sms-send-python "+1234567890" "hello there, how are you?"
+/org/freedesktop/ModemManager1/Modem/0: sms sent
+
+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!