updated WiFi.setHostName()

This commit is contained in:
richonguzman 2024-09-02 09:12:18 -04:00
parent 40fc177828
commit 916eb038e5
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ ________________________________________________________________________________
#include "A7670_utils.h" #include "A7670_utils.h"
#endif #endif
String versionDate = "2024.08.26"; String versionDate = "2024.09.02";
Configuration Config; Configuration Config;
WiFiClient espClient; WiFiClient espClient;

View File

@ -70,6 +70,8 @@ namespace WIFI_Utils {
startAP = true; startAP = true;
} else { } else {
uint8_t wifiCounter = 0; uint8_t wifiCounter = 0;
String hostName = "APRS_iGATE " + Config.callsign;
WiFi.setHostname(hostName.c_str());
WiFi.mode(WIFI_STA); WiFi.mode(WIFI_STA);
WiFi.disconnect(); WiFi.disconnect();
delay(500); delay(500);