Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    How to set buffer size for a LoRa socket using LoPy4

    Scheduled Pinned Locked Moved Discussion
    1 Posts 1 Posters 19 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      keik
      last edited by

      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

      1 Reply Last reply Reply Quote 0

      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
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom