Esp8266

I personally don’t like running sensors.requestTemperatures in a CAYENNE_OUT call. No big deal when it’s quick, but if you have multiples on the one wire bus, it can take some time.

I think standard practice should be to run it in a timed loop using the timer library interval function, then store the values into global variables that the CAYENNE_OUT functions can simply grab when requested.

Here’s an example scheme you can implement.

Cheers,

Craig

1 Like