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

    FTP while waiting (blocked) for Lora message

    Scheduled Pinned Locked Moved Issues & Bugs
    ftplopy
    3 Posts 2 Posters 1.0k 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.
    • C Offline
      crumble
      last edited by

      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-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @crumble
        last edited by

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

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          crumble @robert-hh
          last edited by

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

          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