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-ftplibi 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)
'''
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