Reading the documentation it didn't make clear (maybe I didn't notice) how to use main.py, how to open the file and insert your code and have it run on power on. I experimented a bit, created the file using f = open('main.py','w') and wrote a command inside and it worked but it doesn't seem elegant ...
You are correct. I added a delay between the command and it worked better but it didn't solve my problem. Instead of happening the second time for sure now happens randomly, but it still does. Do you know that limit?
I am using ESP8266 as an access point and upon request it returns values from sensors. My d.measure() function causes error: [code]Traceback (most recent call last): File "<stdin>", line 32, in <module> File "dht.py", line 13, in measure OSError: [Errno 110] ETIMEDOUT This is my code: import dht imp...