Skip to content

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

Open
tueddy wants to merge 1 commit intopeterus:masterfrom
tueddy:master
Open

Server.available() is deprecated, use Server.accept() instead. Fixees compiler warnings for upcoming Arduino 3#51
tueddy wants to merge 1 commit intopeterus:masterfrom
tueddy:master

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