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

    Detect FTP connection

    Scheduled Pinned Locked Moved Discussion
    ftpfipy
    3 Posts 3 Posters 304 Views 7 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.
    • M Offline
      misterlisty
      last edited by

      Is it possible to detect FTp connection? When i upload some new file to pycom i want to stop my scheduler to ensure their is enough processing power for the ftp upload.

      1 Reply Last reply Reply Quote 0
      • D Offline
        dgerman
        last edited by

        @misterlisty Would this work for you

        • download a little semaphore file at the beginning of the ftp session
        • have the scheduler check the semaphore file size and pause if it exists
        • Perform the necessary ftp operations
        • Download an empty file as the semaphore file so the scheduler can see that ftp is no longer in progress. (It would be nice if ftp supported a local delete of the semaphore file)
        1 Reply Last reply Reply Quote 0
        • M Offline
          miyabhai101
          last edited by

          This post is deleted!
          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