-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configuration.h
29 lines (26 loc) · 1.3 KB
/
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
24
25
26
27
28
29
// +------------------------------------------------------------------+
// | C O N S T A N T S |
// +------------------------------------------------------------------+
//MQTT
const char* mqttServer = "<YourMQTTServerIP>";
const int mqttPort = 1883;
const char* mqttUser = "<YourMQTTUser>";
const char* mqttPassword = "<YourMQTTPassword>";
const char* mqttClientId = "<ANewMQTTClientID>";
const char* mqttPowerStateTopic = "<ANewMQTTTopic>";
const char* mqttPowerCommandTopic = "<ANewMQTTTopic2>";
const char* mqttModeStateTopic = "<ANewMQTTTopic3>";
const char* mqttModeCommandTopic = "<ANewMQTTTopic4>";
const char* mqttTempStateTopic = "<ANewMQTTTopic5>";
const char* mqttTempCommandTopic = "<ANewMQTTTopic6>";
const char* mqttSpeedStateTopic = "<ANewMQTTTopic7>";
const char* mqttSpeedCommandTopic = "<ANewMQTTTopic8>";
//GPIO
const byte IRReceiverPin = 1; //TX
const byte IRSenderPin = 3; //RX
// 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>";