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

    FTPlib help

    Scheduled Pinned Locked Moved WiPy 2&3
    1 Posts 1 Posters 17 Views 1 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.
    • G Offline
      Gordon tessier
      last edited by

      Hi,

      i want trying to get my wipy to connect to another wipy and grab a file via FTP.
      i installed the FTPlib https://github.com/SpotlightKid/micropython-ftplib

      i also tried connecting to my network and use a FTP server location on my network but that also gives a connection error.
      i am able to connect to both the 2nd wipys ftp and my ftp server with filezilla so i think i am missing something with the lib.
      one of the FTPlib file threw an error with hte socket but i renamed it to the pycom socket name. that file no longer throws the error but maybe i am missing something.

      but i am getting a connection error any ideas what i am missing?
      '''
      WiFi connected succesfully
      ('192.168.4.2', '255.255.255.0', '192.168.4.1', '192.168.4.1')

      Pycom MicroPython 1.20.2.r0 [v1.11-24c3576] on 2020-08-06; WiPy with ESP32
      Type "help()" for more information.

      from ftplib import *
      from pycom import *
      ftp = FTP("192.168.4.1", 21, "micro", "python")
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/flash/lib/ftplib.py", line 216, in init
      File "/flash/lib/ftplib.py", line 274, in connect
      File "/flash/lib/ftplib.py", line 252, in _create_connection
      Error: Could not connect to ('192.168.4.1', 21)
      '''

      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