-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
38 lines (24 loc) · 1.24 KB
/
config.h
File metadata and controls
38 lines (24 loc) · 1.24 KB
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
/* ------------------ Your specific config -------------------------- */
/* ----------------- Network config --------------------------------- */
#define ENABLE_MAC_ADDRESS_ROM true
#define MAC_I2C_ADDR 0x50
#define ENABLE_DHCP true
byte ardunio_mac[] = {0xDE, 0x51, 0xAF, 0x24, 0x3E, 0x4E};
IPAddress ardunio_ip(000, 000, 000, 000);
/* ----------------- MQTT config ------------------------------------ */
IPAddress mqtt_broker(XXX, XXX, XXX, XXX); //IP address of your MQTT Broker
String mqtt_name = "I2CButtons";
const char mqtt_user[] = "XXXX"; //MQTT UserName
const char mqtt_pass[] = "XXXX"; //MQTT Password
const char mqtt_status_topic[] = "status";
const char mqtt_publish_topic[] = "buttons";
/* ----------------- Watchdog config -------------------------------- */
#define ENABLE_WATCHDOG true;
const char watchdog_pin = 3;
/* ----------------- Button config -------------------------------- */
#define DEBOUNCE_RATE 50
/* ----------------- Controller config -------------------------------- */
// If or when you're using multiple controllers
const byte controller_id = 1;
// Interval to report heartbeat
#define HEARTBEAT 60000 // Set time in ms for Heartbeat 60000 = 1Min