anvil-works / anvil-pico

MicroPython modules for using Anvil on the Pico W
https://anvil.works/pico
MIT License
16 stars 4 forks source link

Fails to restart main function after reconnection #2

Open edsase opened 2 years ago

edsase commented 2 years ago

The program goes to sleep after a couple of seconds of no input. This is ok. However, when it tries to reconnect, it successfully connects to anvil (printing "Authenticated to app xxxxxxxx), but fails to run the main program. This behavior is the same with both the on_first_connect and on_every_connect arguments.

sgbaird commented 2 years ago

Were you able to fix this behavior?

edsase commented 2 years ago

I got some suggestions on this forum but tbh i've not had time to try it out.