From 6519a35799774364b8a2a731ac8106c19048ee08 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 11 Apr 2017 00:08:18 +0300 Subject: [PATCH] Fix WifiUDP::beginMulticastPacket() Fixes: https://github.com/espressif/arduino-esp32/issues/304 Thanks @jliegner :) --- libraries/WiFi/src/WiFiUdp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/WiFi/src/WiFiUdp.cpp b/libraries/WiFi/src/WiFiUdp.cpp index 121602a7..4e6db72a 100644 --- a/libraries/WiFi/src/WiFiUdp.cpp +++ b/libraries/WiFi/src/WiFiUdp.cpp @@ -123,8 +123,8 @@ void WiFiUDP::stop(){ int WiFiUDP::beginMulticastPacket(){ if(!server_port || multicast_ip == IPAddress(INADDR_ANY)) return 0; - remote_ip = server_port; - remote_port = multicast_ip; + remote_ip = multicast_ip; + remote_port = server_port; return beginPacket(); }