Comments (3)
No reason for been hardcoded, added: 29bbefe
@mikestarkenburg mikestarkenburg commented on 31 Jul 2020 that the port number is hard coded = 21 in your library. He wanted to suggest to make it free to choose when initializing the client.
There is a duplicate of the initialisation definition where the second overwrites the first. They differ in port = _port;
and port = 21;
Therefore, the port can only be changed within the source code of the library:
ESP32_FTPClient::ESP32_FTPClient(char* _serverAdress, uint16_t _port, char* _userName, char* _passWord, uint16_t _timeout, uint8_t _verbose){ userName = _userName; passWord = _passWord; serverAdress = _serverAdress; port = _port; timeout = _timeout; verbose = _verbose; }
ESP32_FTPClient::ESP32_FTPClient(char* _serverAdress, char* _userName, char* _passWord, uint16_t _timeout, uint8_t _verbose){ userName = _userName; passWord = _passWord; serverAdress = _serverAdress; port = 21; timeout = _timeout; verbose = _verbose; }
from esp32_ftpclient.
No reason for been hardcoded, added: 29bbefe
from esp32_ftpclient.
Thanks for you comment but itβs incorrect, please refer to the following link which explain the implementation https://en.cppreference.com/w/cpp/language/default_arguments
from esp32_ftpclient.
Related Issues (20)
- Bad PASV Answer HOT 7
- FTP error: Offline HOT 5
- Unknown Commands HOT 7
- Sending CSV files From SD card to FTP Server HOT 1
- Server does not seem to like change directory command HOT 2
- Sending File format to ftp HOT 2
- FTP error: offline HOT 5
- FTP Offline HOT 2
- send MLSD -> FTP error: 500 unknown command. vsfptd HOT 2
- How do I properly close the connection using this library? HOT 3
- myPhoto.png or myphoto.png in example download_file.ino? HOT 7
- Esp32 resets wen data is sennding HOT 1
- Parametric management of FTP parameters HOT 6
- Wifi by smartphone HotSpot HOT 1
- FTP PORT HOT 1
- FTP PORT HOT 1
- FTP PORT HOT 1
- FTP PORT HOT 1
- Upload image from SD-CARD HOT 10
- Upload image from SD-CARD HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32_ftpclient.