Answers for "esp8266 arduino"

3

esp8266 arduino

#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() {}
Posted by: Guest on December-10-2020
0

esp8266 arduino

while (WiFi.status() != WL_CONNECTED)
{
  delay(500);
  Serial.print(".");
}
Posted by: Guest on December-10-2020
0

esp8266 arduino

Serial.printf("Connection status: %d\n", WiFi.status());
Posted by: Guest on December-10-2020
0

esp8266 arduino

WiFi.printDiag(Serial);
Posted by: Guest on December-10-2020
0

esp8266 arduino

Serial.println(WiFi.localIP());
Posted by: Guest on December-10-2020
0

esp8266 arduino

Connectingscandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 1
cnt

connected with sensor-net, channel 6
dhcp client start...
chg_B1:-40
...ip:192.168.1.10,mask:255.255.255.0,gw:192.168.1.9
.
Connected, IP address: 192.168.1.10
Posted by: Guest on December-10-2020
0

esp8266 arduino

WiFi.begin("network-name", "pass-to-network");
Posted by: Guest on December-10-2020
0

esp8266 arduino

Serial.printf("Wi-Fi mode set to WIFI_STA %s\n", WiFi.mode(WIFI_STA) ? "" : "Failed!");
Posted by: Guest on December-10-2020
0

esp8266 arduino

Connecting....
Connected, IP address: 192.168.1.10
Posted by: Guest on December-10-2020
0

esp8266 arduino

Mode: STA+AP
PHY mode: N
Channel: 11
AP id: 0
Status: 5
Auto connect: 1
SSID (10): sensor-net
Passphrase (12): 123!$#0&*esP
BSSID set: 0
Posted by: Guest on December-10-2020

Browse Popular Code Answers by Language