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

    Simultaneous connections

    Scheduled Pinned Locked Moved LoPy
    lopy connection
    2 Posts 2 Posters 102 Views 2 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.
    • T Offline
      Tamaga
      last edited by

      Hi All
      I have the same question,
      Is it possible to maintain two (or more) active connections at the same time? And is it then possible to service these different connections with independent (non-blocking) threads?

      For example; is it possible to send LORA packets on the first thread, and use the second thread to connect to a WIFI network and send data over it?

      Thanks

      securigyS 1 Reply Last reply Reply Quote 0
      • securigyS Offline
        securigy @Tamaga
        last edited by

        @Tamaga I tried receiving data on LoPy4 over WiFi and then sending them to another LoPy4 over LoRa and it worked just fine. I recommend having 2 separate threads - one for receiving and one for sending, although if it is slow data (say one per second) then you can just have it all in one big while loop sequentially...

        1 Reply Last reply Reply Quote 1

        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