mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Bugfix for Open and WEP nets
This commit is contained in:
@ -94,7 +94,7 @@ void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
Serial.println("Setup WiFi...");
|
||||
char ssid[] = "Cariddi";
|
||||
strcpy(ssid, "Vodafone-10289870");
|
||||
Serial.println(ssid);
|
||||
int status = WiFi.begin(ssid);
|
||||
if ( status != WL_CONNECTED)
|
||||
@ -131,6 +131,8 @@ void setup()
|
||||
void loop()
|
||||
{
|
||||
static uint8_t count = 0;
|
||||
Serial.println("Retry connect...");
|
||||
status = WiFi.begin(ssid);
|
||||
if (status == WL_CONNECTED)
|
||||
{
|
||||
byte status = 0;
|
||||
|
Reference in New Issue
Block a user