join

Function

This API is used to add wifi parameter for Network > WLANScan.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
network_mode_type"Dhcp"
"Static"
stringnetwork model
ip_addressstringip address
subnet_maskstringsubnet mask
gatewaystringgateway
ssidMax length:35bytestringWIFI SSID
base_enc_passwordJson ObjectSee base_secondary_authentication

Sample:

POST /API/NetworkConfig/ScanWlan/Join HTTP/1.1
{
    "version": "1.0",
    "data": {
        "ssid": "TPXXX",
        "base_enc_password": {
            "seq": 0,
            "peer_key": "06AX8xRt+bAfD+jV8UpMl+zIcbNkakYIFi3X7YlBWhgs=",
            "cipher": "0WwwRvSgRDydPvrCqmbZrHRcpjsEYC+TbW8tDVNzQPvP6OvHZ"
        }
    }
}

Response Message

None

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.