-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_config.h
34 lines (27 loc) · 2.26 KB
/
user_config.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
// -- Project -------------------------------------------
#define CLIENT "Planta" // Client ID for the ESP
// -- Wifi ----------------------------------------------
#define WIFI_SSID "putssidname" // [Ssid1] Wifi SSID
#define WIFI_PASS "pupassword" // [Password1] Wifi password
#define mqttUser "mqttuser" //MQTT broker username
#define mqttPassword "mqttpassword" //MQTT broker passqord
// -- DHT - Sensor --------------------------------------
#define DHTTYPE DHT11 // [Sensor] Change to DHT11, DHT21, DHT22
#define PIN_DHT 22 // [Sensor] Pin for DHT sensor
#define TEMP_UNIT "C" // [Sensor] Temperature Unit (C = Celsius, F = Fahrenheit)
#define OFFSET_TEMPERATURE 0 // [Offset] If you need to readjust the temperature value
#define OFFSET_HUMIDITY 0 // [Offset] If you need to readjust the humidity value
// -- Other - Sensor ------------------------------------
#define PIN_SOIL 32 // [Sensor] Soil Sensor pin
#define PIN_LIGHT 33 // [Sensor] Light Sensor pin
#define PIN_POWER 34 // [Sensor] Power Sensor pin
#define PIN_LED 16 // pin blue led (untested)
// -- MQTT ----------------------------------------------
#define MQTT 1 // [MQTT] Mosquitto (0 = Off, 1 = Start)
#define MQTT_BROKER "0.0.0.0" // [MQTT] Set the IP adress from your MQ-Broker
#define MQTT_PORT 1883 // [MQTT] MQTT Port on the Server
#define MQTT_TOPIC "smart/room/flower" // [MQTT] Set the topic for your queue
#define MQTT_INTERVAL 3600 // [MQTT] Set the deepsleep time in seconds
// -- HTTP --------------------------------------- When webserv is activ deepsleep will be disabled
#define WEB_SERVER 1 // [WebServer] Web server (0 = Off, 1 = Start)
#define WEB_PORT 80 // [WebServer] Port for web access