Add [ESP290] command per @josedpedroso

fix #364
This commit is contained in:
Luc 2019-08-27 13:50:48 +02:00
parent f48ecfde47
commit d39ea079fa
3 changed files with 23 additions and 1 deletions

View File

@ -73,6 +73,9 @@ if RAW=YES do not set pinmode just read value
* Output to oled line 4
[ESP214]<Text>
* Delay command
[ESP290]<delay in ms>[pwd=<user password>]
* Give EEPROM Version detected
[ESP300]

View File

@ -705,12 +705,31 @@ bool COMMAND::execute_command (int cmd, String cmd_params, tpipe output, level_a
}
break;
#endif
//Command delay
case 290: {
parameter = get_param (cmd_params, "", true);
#ifdef AUTHENTICATION_FEATURE
if (auth_type == LEVEL_GUEST) {
ESPCOM::println (INCORRECT_CMD_MSG, output, espresponse);
response = false;
} else
#endif
{
if (parameter.length() != 0) {
ESPCOM::println ("Pause", output, espresponse);
CONFIG::wait(parameter.toInt());
}
ESPCOM::println (OK_CMD_MSG, output, espresponse);
}
}
break;
//display ESP3D EEPROM version detected
case 300: {
uint8_t v = CONFIG::get_EEPROM_version();
ESPCOM::println (String(v).c_str(), output, espresponse);
}
break;
//Get full EEPROM settings content
//[ESP400]
case 400: {

View File

@ -19,7 +19,7 @@
*/
//version and sources location
#define FW_VERSION "2.1.0.b34"
#define FW_VERSION "2.1.0.b35"
#define REPOSITORY "https://github.com/luc-github/ESP3D"
//Customize ESP3D ////////////////////////////////////////////////////////////////////////