Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ESP8266WiFi.h>
- #include "WiFiManager.h"
- WiFiManager wifiManager;
- void setup() {
- // put your setup code here, to run once:
- WiFi.begin("abc","abddd"); // mac dinh la WiFi ESP 8266 nho user name, password nen dong vai tro la 1 WiFi client, nhap sai user name va password de bien no thanh access point
- Serial.begin(115200);
- if(!wifiManager.autoConnect())
- {
- Serial.println("failed to connect and hit timeout");
- delay(1000);
- }
- }
- void loop() {
- // put your main code here, to run repeatedly:
- }
Add Comment
Please, Sign In to add comment