mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Better error message when domain does not exist
This commit is contained in:
parent
8760b8f03b
commit
b6baa78989
@ -333,6 +333,14 @@ void CmndPing(void) {
|
|||||||
} else if (-1 == res) {
|
} else if (-1 == res) {
|
||||||
ResponseCmndChar_P(PSTR("Ping already ongoing for this IP"));
|
ResponseCmndChar_P(PSTR("Ping already ongoing for this IP"));
|
||||||
} else {
|
} 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"));
|
ResponseCmndChar_P(PSTR("Unable to resolve IP address"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user