Skip to content

Commit

Permalink
Modified for arduino-esp32 v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Jun 3, 2024
1 parent 9aaf623 commit a95276e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
// Changed MQTT payload and topic from char[] to String
// 20240325 domoticz virtual rain sensor: added hourly rain rate
// 20240504 Added board initialization
// 20240603 Modified for arduino-esp32 v3.0.0
//
// ToDo:
//
Expand Down Expand Up @@ -603,7 +604,7 @@ void loop()
Serial.flush();
client.publish(mqttPubStatus, "offline", true /* retained */, 0 /* qos */);
client.disconnect();
client.loop();
net.stop();
#ifdef LED_EN
pinMode(LED_GPIO, INPUT);
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
// 20240213 Added PM1.0 to Air Quality (Particulate Matter) Sensor decoder
// 20240504 Added board initialization
// 20240507 Added configuration of maximum number of sensors at run time
// 20240603 Modified for arduino-esp32 v3.0.0
//
// ToDo:
//
Expand Down Expand Up @@ -147,8 +148,8 @@
#define WIFI_RETRIES 10 // WiFi connection retries
#define WIFI_DELAY 1000 // Delay between connection attempts [ms]
#define SLEEP_EN true // enable sleep mode (see notes above!)
#define USE_SECUREWIFI // use secure WIFI
//#define USE_WIFI // use non-secure WIFI
//#define USE_SECUREWIFI // use secure WIFI
#define USE_WIFI // use non-secure WIFI

// Enter your time zone (https://remotemonitoringsystems.ca/time-zone-abbreviations.php)
const char* TZ_INFO = "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00";
Expand Down Expand Up @@ -885,7 +886,7 @@ void loop()
client.publish(mqttPubStatus, "offline", true /* retained */, 0 /* qos */);
client.loop();
client.disconnect();
client.loop();
net.stop();
#ifdef LED_EN
pinMode(LED_GPIO, INPUT);
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
// 20240122 Added lightning post-processing reset
// 20240504 Added board initialization
// 20240507 Added configuration of maximum number of sensors at run time
// 20240603 Modified for arduino-esp32 v3.0.0
//
// ToDo:
//
Expand Down Expand Up @@ -879,7 +880,7 @@ void loop()
client.publish(mqttPubStatus, "offline", true /* retained */, 0 /* qos */);
client.loop();
client.disconnect();
client.loop();
net.stop();
#ifdef LED_EN
pinMode(LED_GPIO, INPUT);
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
// 20240503 Fixed setting of RTC via SNTP in case on non-secure WiFi config
// 20240504 Added board initialization
// 20240507 Added configuration of maximum number of sensors at run time
// 20240603 Modified for arduino-esp32 v3.0.0
//
// ToDo:
//
Expand Down Expand Up @@ -1102,7 +1103,7 @@ void loop()
client.publish(mqttPubStatus, "offline", true /* retained */, 0 /* qos */);
client.loop();
client.disconnect();
client.loop();
net.stop();
#ifdef LED_EN
pinMode(LED_GPIO, INPUT);
#endif
Expand Down

0 comments on commit a95276e

Please sign in to comment.