Search found 14 matches
- Sat May 06, 2017 11:11 am
- Forum: ESP8266 boards
- Topic: requests.post OSError: [Errno 5] EIO
- Replies: 6
- Views: 11098
Re: requests.post OSError: [Errno 5] EIO
This could be because axTLS version used currently by uPy doesn't support ciphersuites of those sites. Feel free to build the latest axTLS and use its sample client to connect. If you confirm that works, that would help to raise the priority of the upgrade. You might be right. According to this rep...
- Fri May 05, 2017 2:54 pm
- Forum: ESP8266 boards
- Topic: requests.post OSError: [Errno 5] EIO
- Replies: 6
- Views: 11098
Re: requests.post OSError: [Errno 5] EIO
I'm experiencing the same issues more or less. I'm trying to send a request to a Telegram Bot and what I get is ssl_handshake_status: -261 Traceback (most recent call last): File "main.py", line 10, in <module> File "urequest.py", line 28, in urlopen OSError: [Errno 5] EIO I'm using uRequest.py libr...
- Sun Mar 05, 2017 5:02 pm
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
How did you determine connectivity in these tests? It would be informative to do this by retrieving some actual content from the network. It may be that with static IP the ESP reports connectivity instantly, but the access point may need time to respond. This is true, I didn't test for internet con...
- Sun Mar 05, 2017 12:57 am
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
I did some testing to see how much it takes to connect to a wifi network, comparing normal boot vs. reset from deep sleep : Normal boot - DHCP Enabled : 5 seconds Deepsleep - DHCP Enabled: 3 seconds Normal boot - Static IP addressing: 2 seconds Deepsleep - Static IP addressing: 0 seconds Times were ...
- Fri Mar 03, 2017 9:34 pm
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
This discussion is very interesting, but I think it's a bit off topic. Should we move to another thread? I'd love to hear more about powering options.. My story about the dash button was meant for your scenario, tbh. You do have GPIOs available, so why not use those to implement an external circuit...
- Fri Mar 03, 2017 7:48 pm
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
This discussion is very interesting, but I think it's a bit off topic. Should we move to another thread?
I'd love to hear more about powering options..
I'd love to hear more about powering options..
- Thu Mar 02, 2017 5:18 pm
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
By the way, I'd like to test how much it takes for the esp to connect to the wifi network: it looks rather fast even with DHCP (at least in my case), maybe with static IP it will be even faster and can overcome the initial boot up delay.. Also, I'm willing to test how much power it will consume when...
- Wed Mar 01, 2017 9:28 pm
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
The really power-saving sleep modes need to disable WiFi completely. So waking up and connecting to a previously known WiFi does take a few seconds... ~4 including when getting a DHCP lease and only ~2 seconds less with a static IP. I do not like to sound pessimistic, but this seems to not be a res...
- Tue Feb 28, 2017 9:16 pm
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
I suggest you look at the ESP8266 low power modes e.g. the esp library http://docs.micropython.org/en/latest/esp8266/library/esp.html and search this forum to see what others have done. It seems that you set the sleep mode and everything works (with code such as you've outlined) auto-magically but ...
- Tue Feb 28, 2017 5:04 pm
- Forum: ESP8266 boards
- Topic: How do you properly handle external interrupts?
- Replies: 28
- Views: 29142
Re: How do you properly handle external interrupts?
On any platform with a low power sleep mode you could poll at (say) 100ms intervals using such a mode for the 100ms delays. This should be very nearly as power efficient as using a hardware interrupt. I'm not saying there's anything wrong with the interrupt approach - merely outlining alternatives....