FTPlib help

  • 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
    ('', '', '', '')

    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("", 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 ('', 21)

Log in to reply

Pycom on Twitter