FTP while waiting (blocked) for Lora message



  • With FileZilla I can list folders and files while the LoPy waits blocked for a LoRa message. But I cannot get a file until the program has stopped. The LoPy is connected to my local WiFi. The file shall be closed. FileZilla is waiting for a connection until it gets a timeout.

    lora = LoRa(mode=LoRa.LORA, frequency=863000000)
    s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
    s.setblocking(True)
    while True:
    {
    line = s.recv(255)
    f = open('/sd/test.log', 'a')
    f.write(line)
    f.write('\n')
    f.close()
    }

    Issue occurs on firmware 1.8 and 1.9.
    Missing a code formatter in the forum, so I used {} to mark the loop block ;)



  • @robert-hh
    Thank you, I forgot to limit the connections



  • @crumble The code formatter is three backquotes (```) on a single line.
    Did you set Filezilla to using a single session only. That is not possible in fast connect. You have to use the server configuration (Ctrl-S).


Log in to reply
 

Pycom on Twitter