Introduced WifiManager_ssid variable and documented user_config.h (#289)
* Commented user_config.h to clarify usage of WifiManager * Introduced WifiManager_ssid variable * Added changes to Test_config.h too
This commit is contained in:
1 parent
8913ce4e24
commit
a4f571e77e
3 files changed
+51
-12
No files matched your search
+26
-7
@@ -31,6 +31,27 @@
|
||||
/*-------------------VERSION----------------------*/
|
||||
#define OMG_VERSION "0.8"
|
||||
|
||||
/*-------------CONFIGURE WIFIMANAGER-------------*/
|
||||
/*
|
||||
* The following parameters are set during the WifiManager setup process:
|
||||
* - wifi_ssid
|
||||
* - wifi_password
|
||||
* - mqtt_user
|
||||
* - mqtt_pass
|
||||
* - mqtt_server
|
||||
* - mqtt_port
|
||||
*
|
||||
* To completely disable WifiManager, define ESPWifiManualSetup.
|
||||
* If you do so, please don't forget to set these variables before compiling
|
||||
*
|
||||
* Otherwise you can provide these credentials on the web interface after connecting
|
||||
* to the access point with your password (SSID: WifiManager_ssid, password: WifiManager_password)
|
||||
*/
|
||||
|
||||
//#define ESPWifiManualSetup true //uncomment to disable WifiManager
|
||||
#define WifiManager_password "your_password" //this is going to be the WPA2-PSK password for the initial setup access point
|
||||
#define WifiManager_ssid "OpenMQTTGateway" //this is the network name of the initial setup access point
|
||||
|
||||
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
|
||||
//MQTT Parameters definition
|
||||
//#define mqtt_server_name "www.mqtt_broker.com" // instead of defining the server by its IP you can define it by its name, uncomment this line and set the correct MQTT server host name
|
||||
@@ -49,9 +70,6 @@ char mqtt_port[6] = "1883";
|
||||
#define Gateway_AnnouncementMsg "Online"
|
||||
|
||||
/*-------------DEFINE YOUR NETWORK PARAMETERS BELOW----------------*/
|
||||
|
||||
//#define ESPWifiManualSetup true //uncomment you don't want to use wifimanager for your credential settings on ESP
|
||||
#define WifiManager_password "your_password"
|
||||
//#define MDNS_SD //uncomment if you want to use mdns for discovering automatically your ip server, please note that MDNS with ESP32 can cause the BLE to not work
|
||||
//#define cleanFS true //uncomment if you want to clean the ESP memory and reenter your credentials
|
||||
#define maxMQTTretry 4 //maximum MQTT connection attempts before going to wifi setup
|
||||
@@ -67,10 +85,11 @@ char mqtt_port[6] = "1883";
|
||||
const byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95 }; //W5100 ethernet shield mac adress
|
||||
#endif
|
||||
|
||||
const byte ip[] = { 192, 168, 1, 99 }; //ip adress
|
||||
const byte gateway[] = { 0, 0, 0, 0 }; //ip adress, if first value is different from 0 advanced config network will be used and you should fill gateway & dns
|
||||
const byte Dns[] = { 0, 0, 0, 0 }; //ip adress, if first value is different from 0 advanced config network will be used and you should fill gateway & dns
|
||||
const byte subnet[] = { 255, 255, 255, 0 }; //ip adress
|
||||
// these values are only used if no dhcp configuration is available
|
||||
const byte ip[] = { 192, 168, 1, 99 }; //ip address
|
||||
const byte gateway[] = { 0, 0, 0, 0 }; //ip address, if first value is different from 0 advanced config network will be used and you should fill gateway & dns
|
||||
const byte Dns[] = { 0, 0, 0, 0 }; //ip address, if first value is different from 0 advanced config network will be used and you should fill gateway & dns
|
||||
const byte subnet[] = { 255, 255, 255, 0 }; //ip address
|
||||
|
||||
/*-------------DEFINE YOUR OTA PARAMETERS BELOW----------------*/
|
||||
#define ota_hostname Gateway_Name
|
||||
|
||||
Reference in new issue
Block a user