- Posts: 60
- Karma: 2
- Thank you received: 3
comment it ?
EasyIoT wrote: Try to comment #define DEBUG in Esp8266EasyIoTConfig.h file. It will remove all debug code.
EasyIoT wrote: Of course there's room for optimization. This is just sample code and it works on my Arduino Mega 2560 as part of heather thermostat.
I also recommend to optimize code around double pressureSamples; You do not need so many samples, because you always calculate average after 6 samples. Array double pressureSamples; is enough, but you need to change code a little bit.