added alternative to set wifi params via env variables
This commit is contained in:
@@ -264,7 +264,7 @@ static void wifi_event_cb(WiFiEvent_t event)
|
||||
void setupWiFi()
|
||||
{
|
||||
WiFi.onEvent(wifi_event_cb);
|
||||
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
|
||||
WiFi.begin(WIFI_SSID, WIFI_PASS);
|
||||
|
||||
configTzTime(DEFAULT_TIMEZONE, NTP_SERVER1, NTP_SERVER2);
|
||||
// set notification call-back function
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#define WIFI_SSID "You WIFI SSID"
|
||||
#endif
|
||||
|
||||
#ifndef WIFI_PASSWORD
|
||||
#define WIFI_PASSWORD "You WIFI PASSWORD"
|
||||
#ifndef WIFI_PASS
|
||||
#define WIFI_PASS "You WIFI PASSWORD"
|
||||
#endif
|
||||
|
||||
#define NTP_SERVER1 "pool.ntp.org"
|
||||
|
||||
Reference in New Issue
Block a user