Files
ModemManager/examples/sms-python
Yegor Yefremov 297a8c85ae examples: sms: resolve PEP8 issues
Use autopep8 utility to resolve issues like spaces before brackets
and wrong hanging indentation.

Also treat objects like boolean variables to check whether they are
None or not.
2021-02-25 14:14:55 +01:00
..
2016-07-25 12:51:45 +02:00
2016-07-25 12:51:45 +02:00
2021-02-25 14:14:55 +01:00

The sms-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-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!