Update to ESP32-PoE

This commit is contained in:
2021-01-06 17:44:20 +01:00
parent 6476ae14a7
commit dd88541135
8 changed files with 934 additions and 0 deletions

32
WS3/WS3-ESP32/ws3_vars.h Normal file
View File

@ -0,0 +1,32 @@
// 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 */