Search found 5 matches

by ctrlf
Tue Oct 11, 2016 12:29 pm
Forum: ESP8266 boards
Topic: How to use main.py to deploy my code
Replies: 17
Views: 33319

Re: How to use main.py to deploy my code

I tried the webrepl and it worked fine although I had to type first

Code: Select all

import webrepl
webrepl.start()
the documentation says it's by default enabled I couldn't connect. Anyway thank you all and @pythoncoder that's nice trick!
by ctrlf
Mon Oct 10, 2016 9:27 pm
Forum: ESP8266 boards
Topic: Quick question about http_server_simplistic.py at examples folder
Replies: 1
Views: 2083

Quick question about http_server_simplistic.py at examples folder

I copy and pasted using Ctrl-E this example found here https://github.com/micropython/micropyt ... plistic.py but although I receive a 200 code the page is empty. Am i doing something wrong?
by ctrlf
Mon Oct 10, 2016 9:21 pm
Forum: ESP8266 boards
Topic: How to use main.py to deploy my code
Replies: 17
Views: 33319

How to use main.py to deploy my code

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 ...
by ctrlf
Mon Oct 10, 2016 9:03 pm
Forum: ESP8266 boards
Topic: d.measure() causes error
Replies: 3
Views: 4064

Re: d.measure() causes error

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?
by ctrlf
Mon Oct 10, 2016 1:25 pm
Forum: ESP8266 boards
Topic: d.measure() causes error
Replies: 3
Views: 4064

d.measure() causes error

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...