Skip to content

Commit

Permalink
Let hostname be easily configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
bgcngm committed Feb 18, 2024
1 parent ccd2d36 commit 92216ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ void setup()
readEEPROM();//Restore previous state
mqttSerial.print("Setting up wifi...");
setup_wifi();
ArduinoOTA.setHostname("ESPAltherma");
ArduinoOTA.setHostname(HOSTNAME);
ArduinoOTA.onStart([]() {
busy = true;
});
Expand Down
3 changes: 3 additions & 0 deletions src/setup.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//Default device hostname:
#define HOSTNAME "ESPAltherma"

//Setup your credentials and mqtt info here:
//only change the value between the " " leave the rest of the line untouched.
#define WIFI_SSID "SSID"//**Your SSID here**
Expand Down

0 comments on commit 92216ee

Please sign in to comment.