aboutsummaryrefslogtreecommitdiff
path: root/examples/sms-send-python/README
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-01-29 10:20:18 -0600
committerAleksander Morgado <aleksander@aleksander.es>2025-02-17 21:57:33 +0000
commitc320e50753e544e3277280ee53b10eadcdd46fdb (patch)
tree570c976270bf174df86badc42bd13a3e1a7eb333 /examples/sms-send-python/README
parentbc7198df8a3217d29c936fccde66820774228e30 (diff)
examples: add sms-watch-python
Add an example that watches for and prints all SMS messages of all modems. Signed-off-by: Dan Williams <dan@ioncontrol.co>
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!