[Solved] Sipy randomically block on send
-
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. -
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)". -
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login