mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-23 10:08:06 +08:00
fix(smartconfig): fix ip address error in smartconfig callback
This commit is contained in:
@ -47,7 +47,8 @@ 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 = ack->ctx.ip;
|
uint8_t remote_ip[4];
|
||||||
|
memcpy(remote_ip, ack->ctx.ip, sizeof(remote_ip));
|
||||||
int remote_port = (ack->type == SC_ACK_TYPE_ESPTOUCH) ? SC_ACK_TOUCH_SERVER_PORT : SC_ACK_AIRKISS_SERVER_PORT;
|
int remote_port = (ack->type == SC_ACK_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);
|
||||||
|
Reference in New Issue
Block a user