mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-03 11:22:38 +02:00
allows to set STA mode by default
This commit is contained in:
@@ -56,7 +56,11 @@ Some features should not be changed. See notes below.
|
||||
// Serial baud rate
|
||||
// OK to change, but the ESP32 boot text is 115200, so you will not see that is your
|
||||
// serial monitor, sender, etc uses a different value than 115200
|
||||
#define BAUD_RATE 115200
|
||||
#define BAUD_RATE 115200
|
||||
|
||||
//Connect to your local AP with these credentials
|
||||
//#define CONNECT_TO_SSID "your SSID"
|
||||
//#define SSID_PASSWORD "your SSID password"
|
||||
|
||||
#define ENABLE_BLUETOOTH // enable bluetooth
|
||||
|
||||
@@ -101,7 +105,11 @@ Some features should not be changed. See notes below.
|
||||
|
||||
//Default mode
|
||||
#ifdef ENABLE_WIFI
|
||||
#ifdef CONNECT_TO_SSID
|
||||
#define DEFAULT_RADIO_MODE ESP_WIFI_STA
|
||||
#else
|
||||
#define DEFAULT_RADIO_MODE ESP_WIFI_AP
|
||||
#endif //CONNECT_TO_SSID
|
||||
#else
|
||||
#undef ENABLE_NOTIFICATIONS
|
||||
#ifdef ENABLE_BLUETOOTH
|
||||
|
@@ -53,8 +53,13 @@
|
||||
|
||||
//defaults values
|
||||
#define DEFAULT_HOSTNAME "grblesp"
|
||||
#ifdef CONNECT_TO_SSID
|
||||
#define DEFAULT_STA_SSID CONNECT_TO_SSID
|
||||
#define DEFAULT_STA_PWD SSID_PASSWORD
|
||||
#else //!CONNECT_TO_SSID
|
||||
#define DEFAULT_STA_SSID "GRBL_ESP"
|
||||
#define DEFAULT_STA_PWD "12345678"
|
||||
#endif //CONNECT_TO_SSID
|
||||
#define DEFAULT_STA_IP "0.0.0.0"
|
||||
#define DEFAULT_STA_GW "0.0.0.0"
|
||||
#define DEFAULT_STA_MK "0.0.0.0"
|
||||
|
Reference in New Issue
Block a user