Possible Errors: [service].Error.InvalidArguments
[service].Error.DoesNotExist
+ void JoinNetwork(dict network)
+
+ Join network specified by the given properties. The
+ properties for WiFi networks can be WiFi.SSID,
+ WiFi.Security and WiFi.Passphrase.
+
+ Possible Errors: [service].Error.InvalidArguments
+
object CreateNetwork(dict network)
Creates a network object from the specified
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
+static DBusMessage *join_network(DBusConnection *conn,
+ DBusMessage *msg, void *data)
+{
+ DBG("conn %p", conn);
+
+ if (__connman_security_check_privilege(msg,
+ CONNMAN_SECURITY_PRIVILEGE_MODIFY) < 0)
+ return __connman_error_permission_denied(msg);
+
+ return __connman_error_invalid_arguments(msg);
+}
+
static DBusMessage *create_network(DBusConnection *conn,
DBusMessage *msg, void *data)
{
static GDBusMethodTable device_methods[] = {
{ "GetProperties", "", "a{sv}", get_properties },
{ "SetProperty", "sv", "", set_property },
+ { "JoinNetwork", "a{sv}", "", join_network },
{ "CreateNetwork", "a{sv}", "o", create_network },
{ "RemoveNetwork", "o", "", remove_network },
{ "ProposeScan", "", "", propose_scan },