1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Fixed WebServer Issue

This commit is contained in:
Mimmo La Fauci
2012-05-25 08:46:04 +02:00
parent a5e4f5a714
commit 66cf74a95c
5 changed files with 58 additions and 32 deletions

View File

@ -642,6 +642,7 @@ int start_server_tcp(uint16_t port, uint8_t sock)
setMapSock(sock, _ttcp);
err = WL_SUCCESS;
}else{
INFO_SPI("Start Server [%d, %d] FAILED!\n", port, sock);
clearMapSockTcp(sock);
}
@ -741,7 +742,8 @@ int ack_cmd_cb(int numParam, char* buf, void* ctx) {
}
int get_result_cmd_cb(int numParam, char* buf, void* ctx) {
*buf=result;
INFO_SPI("ifStatus:%d result:%d\n", ifStatus, result);
*buf=(ifStatus)?WL_CONNECTED:result;
return WIFI_SPI_ACK;
}