mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-02 23:20:59 +00:00
Fixed ESP32 build
This commit is contained in:
@@ -205,7 +205,11 @@ bool HomeAssistantMqttHandler::publishSystem(HwTools* hw) {
|
||||
}
|
||||
|
||||
if(!autodiscoverInit) {
|
||||
String haUID = WiFi.hostname(); // unit identity (wifi hostname)
|
||||
#if defined(ESP8266)
|
||||
String haUID = WiFi.hostname();
|
||||
#elif defined(ESP32)
|
||||
String haUID = WiFi.getHostname();
|
||||
#endif
|
||||
String haUrl = "http://" + haUID + ".local/";
|
||||
|
||||
for(int i=0;i<sensors;i++){
|
||||
|
||||
Reference in New Issue
Block a user