 |
ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
|
Go to the documentation of this file.
20 #include "../../include/esp3d_config.h"
21 #if defined (DHT_DEVICE)
22 #include "../commands.h"
23 #include "../esp3doutput.h"
24 #include "../settings_esp3d.h"
25 #include "../../modules/dht/dht.h"
26 #include "../../modules/authentication/authentication_service.h"
33 #ifdef AUTHENTICATION_FEATURE
35 output->
printERROR(
"Wrong authentication!", 401);
40 #endif //AUTHENTICATION_FEATURE
42 if (parameter.length() == 0) {
63 #ifdef AUTHENTICATION_FEATURE
65 output->
printERROR(
"Wrong authentication!", 401);
68 #endif //AUTHENTICATION_FEATURE
69 parameter =
get_param (cmd_params,
"type=");
70 if (parameter.length() != 0) {
71 parameter.toUpperCase();
73 if (parameter ==
"NONE") {
75 }
else if(parameter ==
"11") {
77 }
else if (parameter ==
"22") {
94 parameter =
get_param (cmd_params,
"interval=");
95 if (parameter.length() != 0) {
static bool write_byte(int pos, const uint8_t value)
bool setInterval(uint interval)
const char * get_param(const char *cmd_params, const char *label)
static bool write_uint32(int pos, const uint32_t value)
const char * GetModelString()
size_t printMSG(const char *s, bool withNL=true)
size_t printERROR(const char *s, int code_error=200)