mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-03 01:00:38 +08:00
Improve message feedback for [ESP401]
set error message with code 500 instead of 200 fix ??? typo
This commit is contained in:
parent
b0d35c245b
commit
8d75796900
@ -82,7 +82,7 @@ public:
|
||||
}
|
||||
size_t dispatch (uint8_t * sbuf, size_t len);
|
||||
size_t printMSG(const char * s, bool withNL = true);
|
||||
size_t printERROR(const char * s, int code_error = 200);
|
||||
size_t printERROR(const char * s, int code_error = 500);
|
||||
size_t printLN(const char * s);
|
||||
void flush();
|
||||
int availableforwrite();
|
||||
|
@ -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;
|
||||
|
@ -708,7 +708,7 @@ bool Commands::ESP420(const char* cmd_params, level_authenticate_type auth_type,
|
||||
output->print ("/");
|
||||
output->print (WiFi.softAPmacAddress().c_str());
|
||||
} else {
|
||||
output->print ("???");
|
||||
output->print ("unknown");
|
||||
}
|
||||
if (!plain) {
|
||||
output->print ("\"}");
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define _VERSION_ESP3D_H
|
||||
|
||||
//version and sources location
|
||||
#define FW_VERSION "3.0.0.a29"
|
||||
#define FW_VERSION "3.0.0.a30"
|
||||
#define REPOSITORY "https://github.com/luc-github/ESP3D"
|
||||
|
||||
#endif //_VERSION_ESP3D_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user