流程图
协议
- 发送WiFi配置协议
{
"command": "configwifireq",
"data": {
"ssid": "wifissid",
"wifipassword": "test123456",
"user": "testuser",
"userpassword": "testuser",
"cid": "KHR9NCQC5U001ACV",
"cidpassword": "12345678"
}
}
参数说明:
ssid: 路由器ssid
wifipassword: 路由器密码
user: 用户名
userpassword: 用户密码
cid: 设备ID
cidpassword: 设备密码
- 配置成功
{
"command": "configwifiresp",
"code": "0",
"message": "接收成功"
}
- wifi连接成功
{
"command": "deviceconnectedreq",
"code": "0",
"message": "连接成功"
}
- 接收成功
{
"command": "deviceconnectedresp",
"code": "0",
"message": "接收成功"
}