 |
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( WIFI_FEATURE) || defined( BLUETOOTH_FEATURE) || defined (ETH_FEATURE)
22 #include "../commands.h"
23 #include "../esp3doutput.h"
24 #include "../settings_esp3d.h"
25 #include "../../modules/network/netconfig.h"
26 #include "../../modules/authentication/authentication_service.h"
33 #ifdef AUTHENTICATION_FEATURE
35 output->
printERROR(
"Wrong authentication!", 401);
40 #endif //AUTHENTICATION_FEATURE
43 if (parameter.length() == 0) {
47 }
else if (wifiMode ==
ESP_BT) {
61 #ifdef AUTHENTICATION_FEATURE
63 output->
printERROR(
"Wrong authentication!", 401);
66 #endif //AUTHENTICATION_FEATURE
67 parameter.toUpperCase();
69 #
if defined( BLUETOOTH_FEATURE)
70 (parameter ==
"BT") ||
73 (parameter ==
"WIFI-STA") || (parameter ==
"WIFI-AP") ||
75 #
if defined( ETH_FEATURE)
76 (parameter ==
"ETH-STA") ||
78 (parameter ==
"OFF"))) {
81 #ifdef BLUETOOTH_FEATURE
85 "WIFI-STA or WIFI-AP or "
88 "ETH-STA or ETH-SRV or "
90 "OFF mode supported!");
96 if(parameter ==
"WIFI-STA") {
99 if(parameter ==
"WIFI-AP") {
102 #endif //WIFI_FEATURE
104 if(parameter ==
"ETH-STA") {
111 #ifdef BLUETOOTH_FEATURE
112 if(parameter ==
"BT") {
115 #endif //BLUETOOTH_FEATURE
129 #endif //WIFI_FEATURE
static bool write_byte(int pos, const uint8_t value)
const char * get_param(const char *cmd_params, const char *label)
size_t printMSG(const char *s, bool withNL=true)
bool ESP110(const char *cmd_params, level_authenticate_type auth_level, ESP3DOutput *output)
size_t printERROR(const char *s, int code_error=200)
static uint8_t read_byte(int pos, bool *haserror=NULL)