forked from flash62au/WiTcontroller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_network_example.h
49 lines (33 loc) · 2.62 KB
/
config_network_example.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// enter the SSIDs and passwords of as many networks you wish to try to connect to.
const int maxSsids = 4;
// There must be the same number of entities (specified above) in each of the following arrays
const String ssids[maxSsids] = {"Network1", "Network2", "Network3", "Network4"};
const String passwords[maxSsids] = {"password1", "password2", "password3", "password4"};
const String turnoutPrefixes[maxSsids] = {"NT", "NT", "NT", "NT"}; // required if you wish to use turnouts
// this the prefix of all turnout system names for YOUR system, for the wiThrottle servers on the the networks above
const String routePrefixes[maxSsids] = {"IO:AUTO:", "IO:AUTO:", "IO:AUTO:", "IO:AUTO:"}; // required if you wish to use routes
// this is the prefix of all route system names for YOUR system, for the wiThrottle servers on the networks above
// If defined this must be of the form 999999999999:99999 e.g. "19216800400102560" equals 192.168.004.001:2560
// Each block of the ip address MUST be 3 digit. Use leading zeros if needed to insure 3 digits.
// The port MUST be 5 digit. Use leading zeros if needed to insure 5 digits.
// #define DEFAULT_IP_AND_PORT "19216800400102560"
// ********************************************************************************************
// The period that the controller waits for a connection in milliseconds. Default is 10 seconds (10000ms)
// If you are having problems connection to you network, try uncommenting the line increasing this
// #define SSID_CONNECTION_TIMEOUT 10000
// ********************************************************************************************
// Autoconnect to first SSID in the list above (default, if not specified is false)
// #define AUTO_CONNECT_TO_FIRST_DEFINED_SERVER true
// Autoconnect to first found server (defaul, if not specified is true)
#define AUTO_CONNECT_TO_FIRST_WITHROTTLE_SERVER true
// ********************************************************************************************
// Minimum time spacing in milliseconds for commands sent.
// Default is 50
// uncomment and increase this value if the command station is skipping some commands
// Probably Not advisable to set to more than 500
// #define OUTBOUND_COMMANDS_MINIMUM_DELAY 200
// ********************************************************************************************
// For some reason WifiTrax WFD-30 system don't respond unless the commands are preceeded with CR+LF
// These will be sent if the SSID name contains "wftrx_"
// uncomment and change then name in the following line if you need to do it for a different SSID name
// #define SSID_NAME_FOR_COMMANDS_NEED_LEADING_CR_LF "wftrx_"