esp_websocket_client: Upgraded version to 0.0.3

This commit is contained in:
gabsuren
2022-08-05 10:17:09 +04:00
parent 134a9a9eee
commit 5c245dbdb5
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version: "0.0.2" version: "0.0.3"
description: esp websocket client description: esp websocket client
dependencies: dependencies:
idf: idf:

View File

@ -338,11 +338,15 @@ size_t _mdns_udp_pcb_write(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol, c
} }
memcpy((uint8_t *)pbt->payload, data, len); memcpy((uint8_t *)pbt->payload, data, len);
ip_addr_t ip_add_copy;
ip_add_copy.type = ip->type;
memcpy(&(ip_add_copy.u_addr),&(ip->u_addr),sizeof(ip_add_copy.u_addr));
mdns_api_call_t msg = { mdns_api_call_t msg = {
.tcpip_if = tcpip_if, .tcpip_if = tcpip_if,
.ip_protocol = ip_protocol, .ip_protocol = ip_protocol,
.pbt = pbt, .pbt = pbt,
.ip = (ip_addr_t *)ip, .ip = &ip_add_copy,
.port = port .port = port
}; };
tcpip_api_call(_mdns_udp_pcb_write_api, &msg.call); tcpip_api_call(_mdns_udp_pcb_write_api, &msg.call);