-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configuration.h
23 lines (20 loc) · 983 Bytes
/
Configuration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// +------------------------------------------------------------------+
// | C O N S T A N T S |
// +------------------------------------------------------------------+
//MQTT
const char* mqttServer = "<YourMQTTServerIP>";
const int mqttPort = 1883;
const char* mqttUser = "<YourMQTTServerUser>";
const char* mqttPassword = "<YourMQTTServerPassword>";
const char* mqttClientId = "<ANewMQTTClientID>";
const char* mqttDoorTopic = "<ANewMQTTTopic>";
const char* mqttStartTopic = "<ANewMQTTTopic2>";
// GPIO
const byte startCyclePin = 3;
const byte doorLockPin = 1;
// WI-FI CONFIGURATION NETWORK. IF THE ESP01 CANNOT CONNECT TO THE
// LAST WI-FI SPOT USED, A NEW CONNECTION WITH THIS SSID AND
// PASSWORD IS CREATED ON THE ESP01, SO YOU CAN CONNECT TO IT AND
// CONFIGURE THE NEW CONNECTION
const char* wifiSsid = "<NewSSID>";
const char* wifiPassword = "<NewPassword>";