6 import dbus.mainloop.glib
8 def property_changed(name, value, path, interface):
9 iface = interface[interface.rfind(".") + 1:]
10 if name in ["Strength", "Priority"]:
14 print "{%s} [%s] %s = %s" % (iface, path, name, val)
16 if __name__ == '__main__':
17 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
19 bus = dbus.SystemBus()
21 bus.add_signal_receiver(property_changed,
22 bus_name="org.moblin.connman",
23 signal_name = "PropertyChanged",
25 interface_keyword="interface")
27 mainloop = gobject.MainLoop()