I have the thingy52.py script running on a Raspberry Pi 4, and I can successfully poll the sensors when the Thing52 is awake (recently tapped) but when I try to poll in a once-per-hour cron job, I find that the script cannot connect to the T52. (The T52 is plugged in to the wall through USB.)
I presume this is because the T52 goes into a sleep mode. The iOS application is able to connect when the device has gone to sleep, so there must be a way to do it, but it seems the thingy52.py script is not be taking those steps.
Can anyone share an example of communicating with a T52 (in python is possible) in a way that will also wake the device if necessary?
Thank you for any suggestions or pointers.
