Skip to content

Commit

Permalink
Changed Wortuhr.ion to .cpp to use enhanced Editor functions. Added a…
Browse files Browse the repository at this point in the history
… Define for manual Wifi-Settings in Wortuhr.cpp. Changed SERNR to up to date version -200
  • Loading branch information
dbambus committed Dec 15, 2022
1 parent e284162 commit f290f6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ String Network_getSSID() { return wifiManager.getWiFiSSID(); }

void Network_setup(const char *hostname) {
wifiManager.setHostname(hostname);
#ifdef MANUAL_WIFI_SETTINGS
wifiManager.preloadWiFi(WIFI_SSID,WIFI_PASSWORD);
#endif
wifiManager.autoConnect(connectionSSID);
// explicitly disable AP, esp defaults to STA+AP
WiFi.enableAP(false);
Expand Down
6 changes: 5 additions & 1 deletion src/Wortuhr.ino → src/Wortuhr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@

// um das eeprom zu löschen, bzw. zu initialisieren, hier eine andere
// Seriennummer eintragen!
#define SERNR 100
#define SERNR 62

bool DEBUG = true; // DEBUG ON|OFF wenn auskommentiert
//#define VERBOSE // DEBUG VERBOSE Openweathermap

#define MANUAL_WIFI_SETTINGS false
#define WIFI_SSID "Wifi-SSID"
#define WIFI_PASSWORD "Wifi-Pwd"

/*--------------------------------------------------------------------------
* ENDE Hardware Konfiguration. Ab hier nichts mehr aendern!!!
*--------------------------------------------------------------------------
Expand Down

0 comments on commit f290f6a

Please sign in to comment.