组网以后重启一次
This commit is contained in:
parent
3fc25fd7d7
commit
0f00e25394
|
@ -407,7 +407,7 @@ void GetDeviceKey(byte id, Array& key, void* param)
|
||||||
//debug_printf("微网客户端获取密钥");
|
//debug_printf("微网客户端获取密钥");
|
||||||
|
|
||||||
auto client = (TinyClient*)param;
|
auto client = (TinyClient*)param;
|
||||||
if(Sys.Version < 0xAA) return;
|
if(Sys.Version < 0xFFFF) return;
|
||||||
|
|
||||||
//key = client->Password;
|
//key = client->Password;
|
||||||
key.Copy(client->Password, 8);
|
key.Copy(client->Password, 8);
|
||||||
|
@ -502,6 +502,9 @@ bool TinyClient::OnJoin(const TinyMessage& msg)
|
||||||
// 保存配置
|
// 保存配置
|
||||||
Cfg->Save();
|
Cfg->Save();
|
||||||
|
|
||||||
|
// 组网以后重启一次
|
||||||
|
Sys.Reset();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue