Skip to content

Commit bee06ae

Browse files
authored
Fix erratic problem when sending IPv6 UDP packet
1 parent 90a240a commit bee06ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/WiFiUdp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ int WiFiUDP::endPacket(){
257257
recipient.sin6_addr = *(in6_addr*)(ip_addr_t*)remote_ip;
258258
recipient.sin6_family = AF_INET6;
259259
recipient.sin6_port = htons(remote_port);
260+
recipient.sin6_scope_id = 0;
260261
int sent = sendto(udp_server, tx_buffer, tx_buffer_len, 0, (struct sockaddr*) &recipient, sizeof(recipient));
261262
if(sent < 0){
262263
log_e("could not send data: %d", errno);

0 commit comments

Comments
 (0)