 |
ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
|
Go to the documentation of this file.
22 #define MAX_SSID_LENGTH 32
23 #define MIN_SSID_LENGTH 1
25 #define MAX_CHANNEL 14
26 #define MAX_PASSWORD_LENGTH 64
29 #define MIN_PASSWORD_LENGTH 8
30 #ifdef ARDUINO_ARCH_ESP32
32 #define WIFI_NONE_SLEEP WIFI_PS_NONE
33 #define WIFI_LIGHT_SLEEP WIFI_PS_MIN_MODEM
34 #define WIFI_MODEM_SLEEP WIFI_PS_MAX_MODEM
35 #define WIFI_PHY_MODE_11B WIFI_PROTOCOL_11B
36 #define WIFI_PHY_MODE_11G WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G
37 #define WIFI_PHY_MODE_11N WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N
38 #define AUTH_OPEN WIFI_AUTH_OPEN
39 #define AUTH_WEP WIFI_AUTH_WEP
40 #define AUTH_WPA_PSK WIFI_AUTH_WPA_PSK
41 #define AUTH_WPA2_PSK WIFI_AUTH_WPA2_PSK
42 #define AUTH_WPA_WPA2_PSK WIFI_AUTH_WPA_WPA2_PSK
43 #define ENC_TYPE_NONE AUTH_OPEN
44 #define WiFiMode_t wifi_mode_t
45 #endif //ARDUINO_ARCH_ESP32
46 #ifdef ARDUINO_ARCH_ESP8266
47 #include <ESP8266WiFi.h>
48 #endif //ARDUINO_ARCH_ESP8266
50 #ifndef _WIFI_CONFIG_H
51 #define _WIFI_CONFIG_H
72 static const char*
getConnectedSTA(uint8_t * totalcount = NULL,
bool reset =
false);
78 static bool ConnectSTA2AP();
81 #endif //_WIFI_CONFIG_H
static bool is_AP_visible()
static const char * AP_Mask_String()
static bool isPasswordValid(const char *password)
static bool isSSIDValid(const char *ssid)
static const char * getConnectedSTA(uint8_t *totalcount=NULL, bool reset=false)
static int32_t getSignal(int32_t RSSI)
static const char * AP_Auth_String()
static const char * getPHYModeString(uint8_t wifimode)
static const char * getSleepModeString()
static const char * hostname()
static const char * AP_SSID()
static const char * AP_Gateway_String()