[Solved] Sipy randomically block on send
Acme1999 last edited by Acme1999
I've a strange behaviour on my Sipy
(MicroPython v1.8.6-849-86da809 on 2018-01-17; SiPy with ESP32)
Sometimes i'm able to send two messages, sometimes three, sometimes four before it hangs on send() and the led stay red.
sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1); s = socket.socket(socket.AF_SIGFOX, socket.SOCK_RAW); s.setblocking(True); s.setsockopt(socket.SOL_SIGFOX, socket.SO_RX, False); pycom.rgbled(0x200000); s.send(message); pycom.rgbled(0x0f000f); s.close(); pycom.rgbled(0x002000); py.setup_sleep(600); py.go_to_sleep();
Have you an idea?
Update January 31 2018:
I've updated the new firmware v1.15.0.b1 and the issue disappeared.
Acme1999 last edited by
the code is in main.py and runs stand alone.
The pysense is supplied by a tp4065 (charge battery by a solar panel) connect to usb.
rcolistete last edited by rcolistete
How are you connecting, by USB cable or telnet ?
With LoPy, I have to use telnet to avoid long delays sending or receiving LoRa packets when "setblocking(True)".