-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-example.h
49 lines (36 loc) · 1.27 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
44
45
46
47
48
49
/*
* configuration
*
* copy to "config.h" and fill in the values
*/
// on-board LED blinks once per packet
// quiescent state (on or off) is set by "/control" topic reception
// generic board: pin 2
// SparkFun ESP32 Thing: pin 5
#define LED_PIN 2
#define BLINK_MS 50
// WiFi config
const int WIFI_RETRY_DELAY = 300000; // milliseconds
const char *WLAN_SSID[] = {"valpo-net"};
const char *WLAN_PASS[] = {"brownandgold"};
const int NUM_WLANS = 1;
// SNTP time config
const char *NTP_SERVER = "us.pool.ntp.org";
const unsigned long NTP_UPDATE_INTERVAL = 1800000; // ms between NTP queries
// Status updates
const unsigned long STATUS_INTERVAL = 300000; // ms between status messages
// MQTT settings
const char *MQTT_PREFIX_TOPIC = "valpo/esp32-sniffer/";
const char *MQTT_ANNOUNCE_TOPIC = "/status";
const char *MQTT_CONTROL_TOPIC = "/control";
const char *MQTT_BLE_TOPIC = "/ble";
//replace with actual server credentials
const char *MQTT_SERVER = "mqtt.example.net";
const int MQTT_PORT = 1883;
const char *MQTT_USER = "username";
const char *MQTT_PASS = "pass";
// Bluetooth LE settings
const int BLE_SCAN_TIME = 10; // seconds
// true: output every packet heard
// false: output first packet for each address heard in BLE_SCAN_TIME interval
const bool KEEP_DUPLICATES = false;