Create8266 设置SSID PASSWD跟进

This commit is contained in:
WangQiang 2016-06-16 03:54:26 +00:00
parent 99774b4504
commit a745365404
4 changed files with 10 additions and 10 deletions

View File

@ -101,7 +101,7 @@ ISocketHost* AP0104::Create5500()
return net;
}
ISocketHost* AP0104::Create8266(Action onNetReady)
ISocketHost* AP0104::Create8266()
{
debug_printf("\r\nEsp8266::Create \r\n");
@ -118,11 +118,11 @@ ISocketHost* AP0104::Create8266(Action onNetReady)
net->InitConfig();
net->LoadConfig();
net->SSID = "yws007";
net->Pass = "yws52718";
//net->SSID = "yws007";
//net->Pass = "yws52718";
//net->NetReady = onNetReady;
if (EthernetLed) net->Led = CreateFlushPort(EthernetLed);
net->NetReady = onNetReady;
net->OpenAsync();

View File

@ -24,7 +24,7 @@ public:
ISocketHost* Create5500();
ITransport* Create2401();
ISocketHost* Create8266(Action onNetReady = nullptr);
ISocketHost* Create8266();
TokenClient* CreateClient();

View File

@ -40,7 +40,7 @@ void IOK027X::Setup(ushort code, cstring name, COM message, int baudRate)
Config::Current = &Config::CreateFlash();
}
ISocketHost* IOK027X::Create8266(Action onNetReady)
ISocketHost* IOK027X::Create8266()
{
debug_printf("\r\nEsp8266::Create \r\n");
@ -57,10 +57,10 @@ ISocketHost* IOK027X::Create8266(Action onNetReady)
//net->SSID = "yws007";
//net->Pass = "yws52718";
net->SSID = "wswl-net";
net->Pass = "wswl52718";
//net->SSID = "wswl-net";
//net->Pass = "wswl52718";
//net->NetReady = onNetReady;
net->NetReady = onNetReady;
net->OpenAsync();
Host = net;

View File

@ -17,7 +17,7 @@ public:
void Setup(ushort code, cstring name, COM message = COM1, int baudRate = 0);
ITransport* Create2401();
ISocketHost* Create8266(Action onNetReady = nullptr);
ISocketHost* Create8266();
TokenClient* CreateClient();