mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-02-03 14:24:55 +01:00
Use setHostname from network manager
This commit is contained in:
parent
aa2dfcdfd1
commit
976adba570
|
|
@ -107,6 +107,7 @@ void setup() {
|
|||
networkManager = new NetworkManager();
|
||||
networkManager->setup();
|
||||
networkManager->setAPTimeout(Config.wifiAutoAP.timeout * 60 * 1000); // Convert minutes to milliseconds
|
||||
networkManager->setHostName("iGATE-" + Config.callsign);
|
||||
POWER_Utils::setup();
|
||||
Utils::setupDisplay();
|
||||
LoRa_Utils::setup();
|
||||
|
|
|
|||
|
|
@ -85,9 +85,6 @@ namespace WIFI_Utils {
|
|||
return;
|
||||
}
|
||||
|
||||
String hostName = "iGATE-" + Config.callsign;
|
||||
WiFi.setHostname(hostName.c_str());
|
||||
|
||||
// TODO: Create generic multi-SSID support in Network Manager
|
||||
while (!networkManager->isWiFiConnected()) {
|
||||
displayShow("", "Connecting to WiFi:", "", currentWiFi->ssid + " ...", 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue