From 0a57545e114372f3bfabbf13f98d4481ef941b08 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 13 Dec 2022 21:41:20 +0100 Subject: [PATCH] Berry tcpclient uses Tasmota resolver (#17386) --- tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino index 0971c098b..198103fd3 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino @@ -194,7 +194,11 @@ extern "C" { timeout = be_toint(vm, 4); } // open connection - bool success = tcp->connect(address, port, timeout); + IPAddress ipaddr; + bool success = WifiHostByName(address, ipaddr); + if (success) { + success = tcp->connect(ipaddr, port, timeout); + } be_pushbool(vm, success); be_return(vm); /* return self */ }