Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. void connectWiFi()
  2. {
  3. Serial.println("Connecting to WIFI");
  4. WiFi.begin(ssid, password);
  5. while ((!(WiFi.status() == WL_CONNECTED)))
  6. {
  7. delay(300);
  8. Serial.print("..");
  9. }
  10. Serial.println("");
  11. Serial.println("WiFi connected");
  12. Serial.println("NodeMCU Local IP is : ");
  13. Serial.print((WiFi.localIP()));
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement