diff options
Diffstat (limited to 'test/send-sms')
-rwxr-xr-x | test/send-sms | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/send-sms b/test/send-sms new file mode 100755 index 00000000..99e237a2 --- /dev/null +++ b/test/send-sms @@ -0,0 +1,18 @@ +#!/usr/bin/python + +import sys +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.ofono', '/'), + 'org.ofono.Manager') + +properties = manager.GetProperties() + +path = properties["Modems"][0] + +manager = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.SmsManager') + +manager.SendMessage([ sys.argv[1] ], sys.argv[2]) |