Search found 5 matches
- Thu Jun 01, 2017 7:00 am
- Forum: ESP8266 boards
- Topic: Async TCP Server
- Replies: 3
- Views: 7007
Re: Async TCP Server
Ok, i was being ambiguous. Thank you for your reply. So, in blocking mode everything is ok. Changing to non-blocking will require you to do some polling. My problem was that i couldn't find a way to poll. I will explain the problem and the solution i found, in the same time. First of all, this is wh...
- Sat May 27, 2017 4:34 pm
- Forum: ESP8266 boards
- Topic: Async TCP Server
- Replies: 3
- Views: 7007
Async TCP Server
Hello, I'm trying to make ESP do some other things while waiting for a connection from a client. I found that using s.setblocking(true) can help with this. So i was trying multiple ways of pseudo-multitasking like this: import socket import time def check_conn(): cl, addr = s.accept() data = cl.recv...
- Sun May 14, 2017 9:02 am
- Forum: ESP8266 boards
- Topic: ESP 01 keeps resetting
- Replies: 0
- Views: 1500
ESP 01 keeps resetting
Hello all, My ESP 01 keeps resetting at a non regular pace. This is happening just after using for the first time the Timer from machine. The code looks like this: from machine import Timer def lambda(): print("callback happened") tim = Timer(-1) tim.init(period=2000, mode=Timer.PERIODIC, callback=l...
- Wed Apr 05, 2017 11:08 am
- Forum: ESP8266 boards
- Topic: GPIO IRQ wake from deepsleep
- Replies: 3
- Views: 4850
Re: GPIO IRQ wake from deepsleep
Thank you, i will point my attention to some external circuitry. I will come with a solution and post it here.
- Tue Apr 04, 2017 7:55 pm
- Forum: ESP8266 boards
- Topic: GPIO IRQ wake from deepsleep
- Replies: 3
- Views: 4850
GPIO IRQ wake from deepsleep
Hello everyone, I have a PIR sensor connected to my ESP-12 via pin 5. I just want to wake up the device, publish a value to MQTT broker and back to sleep. This is what i'm using: >>> p5.irq(trigger=Pin.IRQ_RISING) <IRQ> >>> p5.irq(trigger=Pin.IRQ_RISING, wake=machine.DEEPSLEEP) Traceback (most recen...