can use delay() on an ESP32 gateway ?
-
Hi,
I started work to connect an AHT10 temp+humidity sensor (I2C) directly to an ESP32 gateway. The AHT10 library readme warns for a compiler message about long delay. And indeed, in the code I found several delay statements that each evaluate to 350 ms! I suspect that this could affect the Gateway functionality, but haven't tested this. I'd rather not change a library (it's coming from github / enjoyneering), but more than that I'd rather not have a internittently malfunctioning gateway. Could the ESP32 not be affected because of multi-core capability or is possibly the delay function under mysensors implemented as a non-totally-blocking routine ? All options that are hard to check for me. Please advise, many thanks in advance.
-
@rumoldus said in can use delay() on an ESP32 gateway ?:
delay function under mysensors implemented as a non-totally-blocking routine ?
MySensors does not override the delay function, so there is no MySensors implementation.
delay will affect the gateways ability to do stuff. How much is impossible to say, but it is likey to cause problem in random ways that are very hard to troubleshoot.
-
One approach would be to create a separate task on the ESP32 that takes care of testing this sensor, than the gateway is not affected.
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
NODs stop responding, but ping works.
Troubleshooting • 8 Mar 2025, 19:47 • Marcin 8 Mar 2025, 19:47 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 29 days ago -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 18 Mar 2025, 18:36