-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.h
43 lines (34 loc) · 1.26 KB
/
config-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
/*
* configuration
*
* copy to "config.h" and fill in the values
* !!!! DO NOT CHECK-IN THIS FILE TO git !!!!
*/
// on-board LED blinks once per packet
// generic board: pin 2
#define LED_PIN 2
#define BLINK_MS 20
// Serial settings
#define SERIAL_TIMEOUT 100 // timeout 100ms
#define CHAR_TIMEOUT 5 // char timeout (ms)
// WiFi config
const typeof(millis()) WIFI_RETRY_DELAY = 300000; // milliseconds 300000
const char *WLAN_SSID[] = {"name1", "name2"};
const char *WLAN_PASS[] = {"pass1", "pass2"};
const int NUM_WLANS = 2;
// SNTP time config
const char *NTP_SERVER = "us.pool.ntp.org";
const typeof(millis()) NTP_UPDATE_INTERVAL = 1800000; // ms between NTP queries
// Status updates
const typeof(millis()) STATUS_INTERVAL = 300000; // ms between status messages
const int NO_PACKETS_INTERVALS_ZOMBIE_RESTART = 10; // no-packet status intervals? --> restart to resurrect
// MQTT settings
const char *MQTT_TOPIC_PREFIX = "valpo/mqtt8266bridge/";
const char *MQTT_STATUS_TOPIC = "/status";
const char *MQTT_CONTROL_TOPIC = "/control";
const char *MQTT_DOWNLINK_TOPIC = "/stdin";
const char *MQTT_UPLINK_TOPIC = "/stdout";
const char *MQTT_SERVER = "CHANGE_ME";
const int MQTT_PORT = 1883;
const char *MQTT_USER = "CHANGE_ME";
const char *MQTT_PASS = "CHANGE_ME";