mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 03:16:01 +08:00
Fixed FTP client connection logic with accept(); updated service config format. (#1082)
Some checks failed
build-ci / build (push) Failing after 1h34m10s
Some checks failed
build-ci / build (push) Failing after 1h34m10s
This commit is contained in:
parent
429007b349
commit
d0bde79aec
@ -260,7 +260,7 @@ void FtpServer::handle() {
|
||||
} else if (cmdStage == FTP_Client) { // Ftp server idle
|
||||
if (ftpServer->hasClient()) {
|
||||
client.stop();
|
||||
client = ftpServer->available();
|
||||
client = ftpServer->accept();
|
||||
}
|
||||
if (client.connected()) { // A client connected
|
||||
clientConnected();
|
||||
@ -1051,7 +1051,7 @@ int FtpServer::dataConnect(bool out150) {
|
||||
while (!data.connected() && count-- > 0) {
|
||||
if (dataServer->hasClient()) {
|
||||
data.stop();
|
||||
data = dataServer->available();
|
||||
data = dataServer->accept();
|
||||
}
|
||||
delay(1);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ const uint16_t IPKeysPos[] = {ESP_STA_IP_VALUE, ESP_STA_GATEWAY_VALUE,
|
||||
ESP_AP_IP_VALUE, ESP_ETH_STA_IP_VALUE, ESP_ETH_STA_GATEWAY_VALUE, ESP_ETH_STA_MASK_VALUE, ESP_ETH_STA_DNS_VALUE};
|
||||
|
||||
const char* ServintKeysVal[] = {
|
||||
"Serial_Bridge_Baud"
|
||||
"Serial_Bridge_Baud",
|
||||
"HTTP_Port",
|
||||
"TELNET_Port",
|
||||
"SENSOR_INTERVAL",
|
||||
|
Loading…
x
Reference in New Issue
Block a user