-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathParameters.h
60 lines (45 loc) · 1.39 KB
/
Parameters.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
50
51
52
53
54
55
56
57
58
59
60
/* Parameters.h
*
* Contains all users customizable parameters
*/
#ifndef PARAMETERS_H
#define PARAMETERS_H
/******
* Comment or uncomment to activate or disable some optional parts.
******/
#define DEV // Development mode
#ifndef DEV
/****
* Production settings
****/
# define MQTT_CLIENT "Poulailler"
/* LED brights during network and MQTT acquisition
*/
# define LED(x) { digitalWrite(LED_BUILTIN, x); }
# define DEF_SLEEP 300 // Default sleep b/w nest sample (in seconds)
# define DEF_WAKED 60 // Default waked time in interactive mode (seconds)
# define DEF_VERBOSITY false // low level of information send (by default, no to save some energies)
#else
/****
* Development settings
****/
# define MQTT_CLIENT "Poulailler-Dev"
/* Debug message on tx
* Notez-bien : LED disabled as on the same GPIO
*/
# define LED(x) { }
# define SERIAL_ENABLED
# define DEF_SLEEP 60 // Sleep b/w nest sample (short as we're debugging)
# define DEF_WAKED 120
# define DEF_VERBOSITY true // Hight level of information send
#endif
/* MQTT */
String MQTT_Topic(MQTT_CLIENT); // Topic's root
String MQTT_Error = MQTT_Topic + "/Error";
String MQTT_Command = MQTT_Topic + "/Command";
String MQTT_VCC = MQTT_Topic + "/Alim";
/* GPIOs */
#define AUXPWR_GPIO 0 /* Power auxiliaries, on prod 0 */
#define ONE_WIRE_BUS 2 // Where OW bus is connected to
#define pinDHT 5 // Where DHT is connected to
#endif