Better error message when domain does not exist

This commit is contained in:
Stephan Hadinger 2020-08-14 18:13:02 +02:00
parent 8760b8f03b
commit b6baa78989
1 changed files with 8 additions and 0 deletions

View File

@ -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"));
}
}