From 5c73fefbbc01262a1f3321f4924a3989934559a1 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 13 Jan 2022 15:35:30 +0100 Subject: [PATCH] Fix ESP8266 compilation Add commands for ESP32 ethernet configuration ``EthIpAddress``, ``EthGateway``, ``EthSubnetmask``, ``EthDnsServer1`` and ``EthDnsServer2`` (#14385) --- CHANGELOG.md | 1 + RELEASENOTES.md | 1 + tasmota/xdrv_02_9_mqtt.ino | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76dcd8422..e118a4994 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. ## [2022.01.2] ### Added - Tasmota favicon to webbrowser tab (#14322) +- Commands for ESP32 ethernet configuration ``EthIpAddress``, ``EthGateway``, ``EthSubnetmask``, ``EthDnsServer1`` and ``EthDnsServer2`` (#14385) ### Changed - IRremoteESP8266 library from v2.8.0 to v2.8.1 diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 3cbde9761..6b335b460 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -104,6 +104,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo ### Added - Command ``SSerialConfig `` to change Serial Bridge configuration - Command ``SspmMap 2,1,..`` to map Sonoff SPM scanned module to physical module [#14281](https://github.com/arendst/Tasmota/issues/14281) +- Commands for ESP32 ethernet configuration ``EthIpAddress``, ``EthGateway``, ``EthSubnetmask``, ``EthDnsServer1`` and ``EthDnsServer2`` [#14385](https://github.com/arendst/Tasmota/issues/14385) - PWM Dimmer two button support [#13993](https://github.com/arendst/Tasmota/issues/13993) - Support for Linkind dimmer as GPIO ``Option A6`` [#14004](https://github.com/arendst/Tasmota/issues/14004) - DDP schemes for light and WS2812 [#14017](https://github.com/arendst/Tasmota/issues/14017) diff --git a/tasmota/xdrv_02_9_mqtt.ino b/tasmota/xdrv_02_9_mqtt.ino index 9bf5b06c6..c3593708d 100644 --- a/tasmota/xdrv_02_9_mqtt.ino +++ b/tasmota/xdrv_02_9_mqtt.ino @@ -921,7 +921,7 @@ void MqttConnected(void) { (2 == Settings->webserver) ? PSTR(D_ADMIN) : PSTR(D_USER)); if (static_cast(WiFi.localIP()) != 0) { ResponseAppend_P(PSTR(",\"" D_CMND_HOSTNAME "\":\"%s\",\"" D_CMND_IPADDRESS "\":\"%_I\""), - TasmotaGlobal.hostname, WiFi.localIP()); + TasmotaGlobal.hostname, (uint32_t)WiFi.localIP()); #if LWIP_IPV6 ResponseAppend_P(PSTR(",\"IPv6Address\":\"%s\""), WifiGetIPv6().c_str()); #endif // LWIP_IPV6 = 1