Merge branch 'bugfix/fix_airkiss_bug_v4.0' into 'release/v4.0'
fix the bug for Airkiss See merge request espressif/esp-idf!7346
This commit is contained in:
commit
5b9cb366c2
1 changed files with 6 additions and 1 deletions
|
@ -71,7 +71,12 @@ static void sc_ack_send_task(void *pvParameters)
|
||||||
sc_ack_t *ack = (sc_ack_t *)pvParameters;
|
sc_ack_t *ack = (sc_ack_t *)pvParameters;
|
||||||
tcpip_adapter_ip_info_t local_ip;
|
tcpip_adapter_ip_info_t local_ip;
|
||||||
uint8_t remote_ip[4];
|
uint8_t remote_ip[4];
|
||||||
|
if (ack->type == SC_TYPE_ESPTOUCH) {
|
||||||
memcpy(remote_ip, ack->ctx.ip, sizeof(remote_ip));
|
memcpy(remote_ip, ack->ctx.ip, sizeof(remote_ip));
|
||||||
|
} else {
|
||||||
|
memset(remote_ip, 255, 4);
|
||||||
|
}
|
||||||
|
|
||||||
int remote_port = (ack->type == SC_TYPE_ESPTOUCH) ? SC_ACK_TOUCH_SERVER_PORT : SC_ACK_AIRKISS_SERVER_PORT;
|
int remote_port = (ack->type == SC_TYPE_ESPTOUCH) ? SC_ACK_TOUCH_SERVER_PORT : SC_ACK_AIRKISS_SERVER_PORT;
|
||||||
struct sockaddr_in server_addr;
|
struct sockaddr_in server_addr;
|
||||||
socklen_t sin_size = sizeof(server_addr);
|
socklen_t sin_size = sizeof(server_addr);
|
||||||
|
|
Loading…
Reference in a new issue