NodeMCU V3 ESP8266: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "'''WiFi Modes of Operation of ESP8266:''' There are three modes of WiFi Operation in the ESP8266 WiFi Module. Those are: # Station Mode (STA) # Soft Access Point (AP) # Soft...")
 
Line 34: Line 34:
}
}
</source>
</source>
==References==
* [https://medium.com/@loginov_rocks/quick-start-with-nodemcu-v3-esp8266-arduino-ecosystem-and-platformio-ide-b8415bf9a038 Quick Start with NodeMCU V3 ESP8266]
* [https://forum.arduino.cc/index.php?topic=628717.0 Blynk Simple ESP8266 Header]
* [https://github.com/esp8266/Arduino Arduino core for ESP8266]
* [https://www.electronicshub.org/connect-esp8266-to-wifi Connect ESP8266 to WiFi]
* [https://my.cytron.io/p-nodemcu-lua-v3-esp8266-wifi-with-ch340c NodeMCU V3 ESP8266]
* [https://github.com/blynkkk/blynk-library/blob/master/src/BlynkSimpleEsp8266.h Blynk C++ Library]
* [https://examples.blynk.cc/?board=ESP8266&shield=ESP8266%20WiFi&example=More%2FDHT11 Blynk Example]
* [https://www.arduino.cc/en/Main/Software Arduino IDE]

Revision as of 11:53, 16 March 2020

WiFi Modes of Operation of ESP8266: There are three modes of WiFi Operation in the ESP8266 WiFi Module. Those are:

  1. Station Mode (STA)
  2. Soft Access Point (AP)
  3. Soft AP + Station

Station Mode

#include "ESP8266WiFi.h"

const char* ssid = "ChorkeOrg_2.4GHz";
const char* password = "academia";

void setup(void) {
  pinMode(D4, OUTPUT);
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print("*");
  }

  Serial.println("");
  Serial.println("WiFi connection Successful");
  Serial.print("The IP Address of ESP8266 Module is: ");
  Serial.print(WiFi.localIP());
}

void loop() {
  digitalWrite(D4, LOW);
  delay(1000);
  digitalWrite(D4, HIGH);
  delay(1000);
}

References