Use global state property from manager interface
[connman] / test / get-state
index f82b44c..38c1dc9 100755 (executable)
@@ -7,6 +7,6 @@ bus = dbus.SystemBus()
 manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
                                        'org.moblin.connman.Manager')
 
-state = manager.GetState()
+properties = manager.GetProperties()
 
-print "System is %s" % (state)
+print "System is %s" % (properties["State"])