From b6baa78989b2130836bf96441189de54b5179436 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Fri, 14 Aug 2020 18:13:02 +0200 Subject: [PATCH] Better error message when domain does not exist --- tasmota/xdrv_38_ping.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasmota/xdrv_38_ping.ino b/tasmota/xdrv_38_ping.ino index af6b634d5..e616a9705 100644 --- a/tasmota/xdrv_38_ping.ino +++ b/tasmota/xdrv_38_ping.ino @@ -333,6 +333,14 @@ void CmndPing(void) { } else if (-1 == res) { ResponseCmndChar_P(PSTR("Ping already ongoing for this IP")); } else { + Response_P(PSTR("{\"" D_JSON_PING "\":{\"%s\":{" + "\"Reachable\":false" + ",\"IP\":\"\"" + ",\"Success\":false" + "}}}"), + XdrvMailbox.data + ); + MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_PING)); ResponseCmndChar_P(PSTR("Unable to resolve IP address")); } }