For manually created networks this is set by
default.
+ uint8 Strength [readonly]
+
+ Indicates the signal strength of the network.
+
array{byte} WiFi.SSID [readonly]
If the network type is WiFi, then this property is
element->wifi.security = g_strdup(security);
}
- connman_element_add_static_property(element, "WiFi.Strength",
+ connman_element_add_static_property(element, "Strength",
DBUS_TYPE_BYTE, &strength);
DBG("%s (%s) strength %d", network->identifier,
} else {
data->pending = g_slist_remove(data->pending, element);
- connman_element_set_static_property(element, "WiFi.Strength",
+ connman_element_set_static_property(element, "Strength",
DBUS_TYPE_BYTE, &strength);
}
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])
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)