Skip to content

Commit 824b278

Browse files
committed
Updated myconfig for the previous changes
1 parent 244fbb3 commit 824b278

File tree

1 file changed

+37
-29
lines changed

1 file changed

+37
-29
lines changed

myconfig.sample.h

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/*
1+
/*
22
* Rename this example to 'myconfig.h' and fill in your details.
3-
*
3+
*
44
* The local config is in the '.gitignore' file, which helps to keep details secret.
55
*/
66

@@ -20,12 +20,12 @@
2020
* The second block is where our list of ssid/passwords live
2121
2222
struct station {
23-
const char ssid[64]; // - ssid (max 64 chars)
24-
const char password[64]; // - password (max 64 chars)
25-
const bool dhcp; // - dhcp
26-
} stationList[] = {{"ssid1", "pass1", true},
27-
{"ssid2", "pass2", true},
28-
{"ssid3", "pass3", false}};
23+
const char ssid[64]; // - Do Not
24+
const char password[64]; // - Edit
25+
const bool dhcp; // - This
26+
} station stationList[] = {{"ssid1", "pass1", true},
27+
{"ssid2", "pass2", true},
28+
{"ssid3", "pass3", false}};
2929
3030
* The first entry (ssid1, above) in the stationList[] is special, if WIFI_AP_ENABLE has been uncommented
3131
* it will be used for the AccessPoint ssid and password.
@@ -34,13 +34,37 @@ struct station {
3434
* Note the use of nested braces '{' and '}' to group each entry, and commas ',' to seperate them.
3535
*/
3636
struct station {
37-
const char ssid[64]; // Do not edit these
38-
const char password[64]; // three lines..
39-
const bool dhcp; //
37+
const char ssid[64]; // Do Not
38+
const char password[64]; // Edit These
39+
const bool dhcp; // Lines..
4040
} stationList[] = {{"my_ssid","my_password", true}};
4141

42+
/*
43+
* Hostname. Optional, uncomment and set if desired
44+
* - used in DHCP request when connecting to networks, not used in AP mode
45+
* - Most useful when used with a static netwrk config, not all routers respect this setting
46+
*
47+
* The URL_HOSTNAME will be used in place of the IP address in internal URL's
48+
*/
49+
50+
// #define HOSTNAME "esp-cam"
51+
// #define URL_HOSTNAME "esp-cam"
4252

4353
/*
54+
* Static network settings for client mode
55+
*
56+
* Note: The same settings will be applied to all client connections where the dhcp setting is 'false'
57+
* You must define all three: IP, Gateway and NetMask
58+
*/
59+
// warning - IP addresses must be seperated with commas (,) and not decimals (.)
60+
// #define ST_IP 192,168,0,123
61+
// #define ST_GATEWAY 192,168,0,2
62+
// #define ST_NETMASK 255,255,255,0
63+
// One or two optional DNS servers can be supplied, but the current firmware never uses them ;-)
64+
// #define ST_DNS1 192,168,0,2
65+
// #define ST_DNS2 8,8,8,8
66+
67+
/*
4468
* AccessPoint;
4569
*
4670
* Uncomment to enable AP mode;
@@ -60,28 +84,12 @@ struct station {
6084
* browser and other settings.
6185
*/
6286
// Optionally change the AccessPoint ip address (default = 192.168.4.1)
63-
// warning - IP addresses must be seperated with commas (,) and not decimals (.) here
87+
// warning - IP addresses must be seperated with commas (,) and not decimals (.)
6488
// #define AP_ADDRESS 192,168,4,1
6589

6690
// Uncomment this to force the AccessPoint channel number, default = 1
6791
// #define AP_CHAN 1
6892

69-
70-
/*
71-
* Static network settings for client mode
72-
*
73-
* Note: The same settings will be applied to all client connections where the dhcp setting is 'false'
74-
* You must define all three: IP, Gateway and NetMask
75-
*/
76-
// warning - IP addresses must be seperated with commas (,) and not decimals (.) here
77-
// #define ST_IP 192,168,0,16
78-
// #define ST_GATEWAY 192,168,0,2
79-
// #define ST_NETMASK 255,255,255,0
80-
// One or two optional DNS servers can be supplied, but the current firmware never uses them ;-)
81-
// #define ST_DNS1 192,168,0,2
82-
// #define ST_DNS2 8,8,8,8
83-
84-
8593
/*
8694
* Port numbers for WebUI and Stream, defaults to 80 and 81.
8795
* Uncomment and edit as appropriate
@@ -94,7 +102,7 @@ struct station {
94102
* and how often we check to see if we are still connected, milliseconds
95103
* You may wish to increase this if your WiFi is slow at conencting,
96104
*/
97-
//#define WIFI_WATCHDOG 5000
105+
// #define WIFI_WATCHDOG 5000
98106

99107
/*
100108
* Camera Defaults

0 commit comments

Comments
 (0)