Last active
January 13, 2022 17:18
-
-
Save loginov-rocks/9061ed1d774c3a61113ba0d1052c8d8f to your computer and use it in GitHub Desktop.
DIY Connected Espresso Machine: Over-the-Air Updates (Part 6) - setupWiFi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "WiFiManager.h" | |
// ... | |
#define WIFI_HOSTNAME "Connected-Espresso-Machine" | |
#define WIFI_ACCESS_POINT_SSID "Connected-Espresso-Machine" | |
// ... | |
/** | |
* @see https://github.com/tzapu/WiFiManager/blob/master/examples/Basic/Basic.ino | |
*/ | |
void setupWiFi() | |
{ | |
Serial.println("Setup Wi-Fi..."); | |
WiFi.hostname(WIFI_HOSTNAME); | |
WiFiManager wifiManager; | |
wifiManager.autoConnect(WIFI_ACCESS_POINT_SSID); | |
Serial.println("Wi-Fi setup was successful!"); | |
Serial.print("Local IP: "); | |
Serial.println(WiFi.localIP()); | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment