0

Apologies for the basic request here. I have a Pico Enviro+ and am using the script here to send data to my MQTT server.

The script fails after approx 12-14hrs. It used to fail after 5-6hrs, but I changed the MQTT keepalive from 30 to 60 seconds.

My question is: does anyone have a better method than the one in the script for keeping alive (a) WiFi and (b) MQTT client connection. Otherwise I won't be able to put the bloody thing outside.

Apologies again for the very basic nature of my question. I know this isn't my own training space, I just need pointers...

TIA

WarwickHW
  • 1
  • 1

0 Answers0