Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server.available() is deprecated, use Server.accept() instead. Fixees compiler warnings for upcoming Arduino 3 #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tueddy
Copy link

@tueddy tueddy commented Apr 5, 2024

Tested with both profiles ESp32 & ESP8266. Fixes warning

.pio/libdeps/lolin_d32_pro_sdmmc_pe/ESP-FTP-Server-Lib/src/ESP-FTP-Server-Lib.cpp: In member function 'void FTPServer::handle()':
.pio/libdeps/lolin_d32_pro_sdmmc_pe/ESP-FTP-Server-Lib/src/ESP-FTP-Server-Lib.cpp:40:115: warning: 'WiFiClient WiFiServer::available()' is deprecated: Renamed to accept(). [-Wdeprecated-declarations]
   40 |     std::shared_ptr<FTPConnection> connection = std::shared_ptr<FTPConnection>(new FTPConnection(_Server.available(), _UserList, _Filesystem));
      |                                                                                                  ~~~~~~~~~~~~~~~~~^~
In file included from .pio/libdeps/lolin_d32_pro_sdmmc_pe/ESP-FTP-Server-Lib/src/FTPConnection.h:4,
                 from .pio/libdeps/lolin_d32_pro_sdmmc_pe/ESP-FTP-Server-Lib/src/ESP-FTP-Server-Lib.h:7,
                 from .pio/libdeps/lolin_d32_pro_sdmmc_pe/ESP-FTP-Server-Lib/src/ESP-FTP-Server-Lib.cpp:1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant