Files
Ardiuno/WS3/WS3-ESP32/ws3_vars.h
2021-01-06 17:44:20 +01:00

33 lines
864 B
C

// Variables used this software
#ifndef ws3_vars_h
#define ws3_vars_h
// Domoticz MQTT configuration by WiFiManager
const char *mqtt_server = "portbuild.home.oav.net";
// configuration values
char idx_windir[4]="48";
char idx_temp[4] ="52";
char idx_rain[4] ="51";
// To handle Gust
volatile unsigned int loopcount=0; // number of loops (300 = 10 minutes, since every Serial loops is 2s)
volatile unsigned int WindGust=0; // wind gust data values to keep track of the strongest gust in the last 10 minutes
// Definitions
const char* Mqtt_clientid = "ESP-Weather-Station";
const char* dom_in = "domoticz/in";
char msgToPublish[MQTT_MAX_PACKET_SIZE + 1];
// Place holder for the packet received
String pkt_str = "";
// Flag for packet OK
volatile byte pkt_ok = false;
// Flag for saving data
bool shouldSaveConfig = false;
#endif /* ws3_vars_h */