Giter Site home page Giter Site logo

FTP port hardcoded? about esp32_ftpclient HOT 3 CLOSED

ldab avatar ldab commented on May 26, 2024
FTP port hardcoded?

from esp32_ftpclient.

Comments (3)

TranquilloCosta avatar TranquilloCosta commented on May 26, 2024 1

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.

ldab avatar ldab commented on May 26, 2024

No reason for been hardcoded, added: 29bbefe

from esp32_ftpclient.

ldab avatar ldab commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.