SHARE
TWEET

Untitled

a guest Oct 21st, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <ESP8266WiFi.h>
  2. #include "WiFiManager.h"
  3. WiFiManager wifiManager;
  4. void setup() {
  5.   // put your setup code here, to run once:
  6.   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
  7. Serial.begin(115200);
  8. if(!wifiManager.autoConnect())
  9. {
  10.   Serial.println("failed to connect and hit timeout");
  11.   delay(1000);
  12. }
  13. }
  14.  
  15. void loop() {
  16.   // put your main code here, to run repeatedly:
  17.  
  18. }
RAW Paste Data
Top