mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add FtpServer::end() function #283
This commit is contained in:
parent
fc9e14a926
commit
665f8b992a
@ -61,15 +61,18 @@ FtpServer::FtpServer(uint16_t _cmdPort, uint16_t _pasvPort) : ftpServer(_cmdPort
|
||||
|
||||
void FtpServer::end()
|
||||
{
|
||||
DEBUG_PRINTLN(F("Stop server!"));
|
||||
|
||||
if(client.connected()) {
|
||||
disconnectClient();
|
||||
}
|
||||
|
||||
ftpServer.end();
|
||||
dataServer.end();
|
||||
DEBUG_PRINTLN(F("Stop server!"));
|
||||
|
||||
cmdStage = FTP_Init;
|
||||
cmdStage = FTP_Stop;
|
||||
transferStage = FTP_Close;
|
||||
dataConn = FTP_NoConn;
|
||||
}
|
||||
|
||||
void FtpServer::begin(const char* _user, const char* _pass, const char* _welcomeMessage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user