How to set buffer size for a LoRa socket using LoPy4
-
Hello! I am currently having trouble setting a specific buffer size for the socket that my LoRa node is receiving data on. The buffer is simply too small which leads to packet loss.
If I have understood correctly, the socket.recv() method only prescribes the amount of bytes that you want to extract from the socket buffer. And I've already looked into the "SO_RCVBUF"-option for the setsockopt() method, but it doesn't seem like this option is included for the configuration I am currently using.
To specify: I am interested in a way to specify the buffer size of the socket itself, not the amount of bytes I am extracting from the buffer.
My current configuration is as follows:
Pycom MicroPython 1.20.2.r6 [v1.11-c5a0a97] on 2021-10-28; LoPy4 with ESP32
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