Skip to content

Commit

Permalink
Merge pull request #81 from kivancsikert/wifi/trust-wifimanager
Browse files Browse the repository at this point in the history
Improve stability of WiFi connection on first boot on MK6
  • Loading branch information
lptr authored Feb 1, 2024
2 parents ea6615e + 1a8da6b commit 45f4fd5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/kernel/drivers/WiFiDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ namespace farmhub::kernel::drivers {
class WiFiDriver {
public:
WiFiDriver(StateSource& networkReady, StateSource& configPortalRunning, const String& hostname) {
WiFi.mode(WIFI_STA);
WiFi.setHostname(hostname.c_str());
wifiManager.setHostname(hostname.c_str());
wifiManager.setConfigPortalTimeout(180);
wifiManager.setAPCallback([this, &configPortalRunning](WiFiManager* wifiManager) {
Expand Down

0 comments on commit 45f4fd5

Please sign in to comment.