mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-09 13:50:51 +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
|
// Serial baud rate
|
||||||
// OK to change, but the ESP32 boot text is 115200, so you will not see that is your
|
// 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
|
// 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
|
#define ENABLE_BLUETOOTH // enable bluetooth
|
||||||
|
|
||||||
@@ -101,7 +105,11 @@ Some features should not be changed. See notes below.
|
|||||||
|
|
||||||
//Default mode
|
//Default mode
|
||||||
#ifdef ENABLE_WIFI
|
#ifdef ENABLE_WIFI
|
||||||
|
#ifdef CONNECT_TO_SSID
|
||||||
|
#define DEFAULT_RADIO_MODE ESP_WIFI_STA
|
||||||
|
#else
|
||||||
#define DEFAULT_RADIO_MODE ESP_WIFI_AP
|
#define DEFAULT_RADIO_MODE ESP_WIFI_AP
|
||||||
|
#endif //CONNECT_TO_SSID
|
||||||
#else
|
#else
|
||||||
#undef ENABLE_NOTIFICATIONS
|
#undef ENABLE_NOTIFICATIONS
|
||||||
#ifdef ENABLE_BLUETOOTH
|
#ifdef ENABLE_BLUETOOTH
|
||||||
|
@@ -53,8 +53,13 @@
|
|||||||
|
|
||||||
//defaults values
|
//defaults values
|
||||||
#define DEFAULT_HOSTNAME "grblesp"
|
#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_SSID "GRBL_ESP"
|
||||||
#define DEFAULT_STA_PWD "12345678"
|
#define DEFAULT_STA_PWD "12345678"
|
||||||
|
#endif //CONNECT_TO_SSID
|
||||||
#define DEFAULT_STA_IP "0.0.0.0"
|
#define DEFAULT_STA_IP "0.0.0.0"
|
||||||
#define DEFAULT_STA_GW "0.0.0.0"
|
#define DEFAULT_STA_GW "0.0.0.0"
|
||||||
#define DEFAULT_STA_MK "0.0.0.0"
|
#define DEFAULT_STA_MK "0.0.0.0"
|
||||||
|
Reference in New Issue
Block a user