I don't plan to run long running tasks on Pythonista. Just noticed that it died after autolock while I was running some tests using mqtt. The actual log processing will run on a dedicated Pi.
Thanks for the link ccc.....I've added the console.set_idle_timer_disabled() call and will see if that helps.
Any way to put a custom icon on your iDevice home bar or a page to automagically start a Pythonista script? Be nice to be able to write cool scripts and be able to initiate them just like a native IOS app.
Any way to keep Pythonista running in the background? I find that a long running logging task (using the paho-mqtt client), dies after a while, when my iPad autolocks.
Also seem to have some reconnection issues with mqtt to my iPad running a Pythonista script that monitors log entries being sent by my thermostat over mqtt. Don't get those issues with my linux machines or on my Raspberry Pi's. Keep getting "Connection reset by peer" errors in Pythonista for some reason.