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 ;) -
@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). -
@robert-hh
Thank you, I forgot to limit the connections
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