Skip to content

Commit

Permalink
Enable WiFi autoconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
soylentOrange committed Oct 6, 2024
1 parent ebea399 commit 0c48c43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ void setup() {
config.begin(&prefs);
debugSerial.end();
debugSerial.begin(config.getSerialBaudRate(), config.getSerialConfig());
dbgln("[wifi] start");// Set Hostname
dbgln("[wifi] start");
// Set Hostname
if(config.getHostname().length() > 2) {
WiFi.setHostname(config.getHostname().c_str());
}
// Enable auto-reconnect
wm.setWiFiAutoReconnect(true);
// Set WiFi to station mode
WiFi.mode(WIFI_STA);
// Set (reduced) WiFi TX Power
Expand Down

0 comments on commit 0c48c43

Please sign in to comment.