Improve message feedback for [ESP401]

set error message with code 500 instead of 200
fix ??? typo
This commit is contained in:
Luc
2020-04-12 18:34:31 +02:00
parent b0d35c245b
commit 8d75796900
4 changed files with 8 additions and 5 deletions

View File

@@ -166,9 +166,12 @@ bool Commands::ESP401(const char* cmd_params, level_authenticate_type auth_type,
#endif //WIFI_FEATURE
}
if (!response) {
output->printERROR ("Incorrect command!");
String tmp = "error " + spos;
output->printERROR (tmp);
} else {
output->printMSG("ok");
String tmp = "ok " + spos;
output->printMSG(tmp)
}
return response;