Skip to content

Commit

Permalink
Minor Wi-Fi fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Jan 29, 2024
1 parent 528da8b commit 3457827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gazebo/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ void sendWiFi(const uint8_t *buf, int len) {
if (wifiSocket == 0) setupWiFi();
sockaddr_in addr;
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = INADDR_BROADCAST;
addr.sin_port = htons(14550);
addr.sin_addr.s_addr = INADDR_BROADCAST; // send UDP broadcast
addr.sin_port = htons(WIFI_UDP_PORT_REMOTE);
sendto(wifiSocket, buf, len, 0, (sockaddr *)&addr, sizeof(addr));
}

Expand Down

0 comments on commit 3457827

Please sign in to comment.