|  Developer
Updated on November 11, 2021

hub.network.wifi.up_hostap

  • Version: 1.0
  • Classes: ANY
  • Title: Try up access point on wifi
  • Description: Try up access point on wifi and save settings
Edit
Field Type Required Description
interfaceId string + Id of the interface (wifi)
network JsonObj + AP WiFi network
network.ssid string + WiFi SSID
network.security string + WiFi security (open, wpa-psk, wpa2-psk, …)
network.psk string WiFi security key (used with WiFi security: wep, wpa-psk, wpa2-psk
ipv4 JsonObj IPv4 settings (only mode: static + dhcp server)
ipv4.ip string IPv4 address
ipv4.mask string IPv4 mask
Edit
  • Return empty result or error
Edit
Edit
				
					{
    "method": "hub.network.wifi.up_hostap",
    "id": "_ID_",
    "params": {
        "interfaceId" : "wlan0",
        "network" : {
            "ssid" : "ezlo_AP",
            "security" : "wpa2-psk",
            "psk" : "xxxxxxxx"
        },
        "ipv4" : {
            "ip" : "192.168.2.2",
            "mask" : "255.255.255.0"
        }
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}