Problem getting WiFi begining tutorial to work
Posted: Mon May 07, 2018 12:12 pm
This is a tutorial. Code is below. It returns only "square symbol )" in the serial monitor. This code is supposed to deliver:
connecting
"Connected, IP address:"
This is very simple code. It compiles & uploads, Can someone tell how to make it won't work. I put in the correct network name & password.
---------------------------------
#include <ESP8266WiFi.h>
void setup()
{
Serial.begin(115200);
Serial.println();
WiFi.begin("network-name", "pass-to-network");
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {}
connecting
"Connected, IP address:"
This is very simple code. It compiles & uploads, Can someone tell how to make it won't work. I put in the correct network name & password.
---------------------------------
#include <ESP8266WiFi.h>
void setup()
{
Serial.begin(115200);
Serial.println();
WiFi.begin("network-name", "pass-to-network");
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {}