Simultaneous connections



  • 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



  • @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...


Log in to reply
 

Pycom on Twitter