summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-14 02:12:40 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-14 02:12:40 +0100
commitc634b10c2613e71f2824171b9a42c1728f801c71 (patch)
treefbde8adc6f45f59ea81fb5829925b69d11981b5d /test
parent99515f9c0d4818aa99eb227657954a2d9f1d3ae3 (diff)
downloadconnman-c634b10c2613e71f2824171b9a42c1728f801c71.tar.gz
connman-c634b10c2613e71f2824171b9a42c1728f801c71.tar.bz2
connman-c634b10c2613e71f2824171b9a42c1728f801c71.zip
Add generic signal strength property
Diffstat (limited to 'test')
-rwxr-xr-xtest/list-networks2
-rwxr-xr-xtest/monitor-connman2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/list-networks b/test/list-networks
index 8f7e01bb..b4462103 100755
--- a/test/list-networks
+++ b/test/list-networks
@@ -42,7 +42,7 @@ for path in properties["Devices"]:
if (key == "WiFi.SSID"):
ssid = convert_ssid(properties[key])
print " %s = [ %s ]" % (key, ssid)
- elif (key == "WiFi.Strength"):
+ elif (key == "Strength"):
print " %s = %d" % (key, properties[key])
else:
print " %s = %s" % (key, properties[key])
diff --git a/test/monitor-connman b/test/monitor-connman
index 0c4a2efc..97d3a6b5 100755
--- a/test/monitor-connman
+++ b/test/monitor-connman
@@ -7,7 +7,7 @@ import dbus.mainloop.glib
def property_changed(name, value, path, interface):
iface = interface[interface.rfind(".") + 1:]
- if (name == "WiFi.Strength"):
+ if (name == "Strength"):
val = int(value)
else:
val = str(value)