Add Home Assistant configuration URL

This commit is contained in:
iranl
2024-02-04 21:48:06 +01:00
committed by GitHub
parent de117f5a06
commit ccb3f899ce
6 changed files with 35 additions and 1 deletions

View File

@@ -159,6 +159,11 @@ int8_t EthLan8720Device::signalStrength()
return -1;
}
String EthLan8720Device::localIP()
{
return Ethernet.localIP().toString();
}
void EthLan8720Device::mqttSetClientId(const char *clientId)
{
if(_useEncryption)

View File

@@ -229,6 +229,11 @@ int8_t W5500Device::signalStrength()
return 127;
}
String W5500Device::localIP()
{
return Ethernet.localIP().toString();
}
void W5500Device::mqttSetClientId(const char *clientId)
{
_mqttClient.setClientId(clientId);

View File

@@ -180,6 +180,11 @@ int8_t WifiDevice::signalStrength()
return WiFi.RSSI();
}
String WifiDevice::localIP()
{
return WiFi.localIP().toString();
}
void WifiDevice::clearRtcInitVar(WiFiManager *)
{
memset(WiFiDevice_reconfdetect, 0, sizeof WiFiDevice_reconfdetect);