usage_iface.RequestResource("GSM")
gsm_device_obj = bus.get_object("org.freesmartphone.ogsmd", "/org/freesmartphone/GSM/Device")
+ gsm_device_iface = dbus.Interface(gsm_device_obj, "org.freesmartphone.GSM.Device")
gsm_call_iface = dbus.Interface(gsm_device_obj, "org.freesmartphone.GSM.Call")
print "Set Functionality: full"
- gsm_network_iface.SetFunctionality("full", True, "")
+ gsm_device_iface.SetFunctionality("full", True, "")
gsm_call_iface.connect_to_signal('CallStatus', onCallStatus)
print "Interrupted"
loop.quit()
- gsm_network_iface.SetFunctionality("minimal", True, "")
+ gsm_device_iface.SetFunctionality("minimal", True, "")
usage_iface.ReleaseResource("GSM")
if __name__ == "__main__":