UDP Multicast in AP mode
Posted: Thu Jan 23, 2020 2:44 pm
Hello,
My project is downright simple : create an onboard standalone system to multicast text data (NMEA in fact) from an Arduino-based multiplexer through WiFi to :
I thought it was the vocation of an AP to fulfill this mission and I am surprised to read that : "The WiFiUDP class supports sending and receiving multicast packets on STA interface." This is to be found here : https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/udp-class.html#multicast-udp
I understand with that : The WiFiUDP class DOES NOT support sending and receiving multicast packets on AP interface." Thus so far I have just been able to make the multiplexer work, create a softAP with an ESP8266 and send the same UNICAST packets to each receiver in turn, which is not acceptable from a performance point of view.
I learn I can define a STATION + AP mode , but then how do I proceed to send the data through the STA interface ? Knowing that the STATION cannot connect to another network than the one created in AP mode ?
Thank you for your help.
Friendly
jptrol
My project is downright simple : create an onboard standalone system to multicast text data (NMEA in fact) from an Arduino-based multiplexer through WiFi to :
- a PC application,
- an Android tablet,
- an ESP8266-based repeater
I thought it was the vocation of an AP to fulfill this mission and I am surprised to read that : "The WiFiUDP class supports sending and receiving multicast packets on STA interface." This is to be found here : https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/udp-class.html#multicast-udp
I understand with that : The WiFiUDP class DOES NOT support sending and receiving multicast packets on AP interface." Thus so far I have just been able to make the multiplexer work, create a softAP with an ESP8266 and send the same UNICAST packets to each receiver in turn, which is not acceptable from a performance point of view.
I learn I can define a STATION + AP mode , but then how do I proceed to send the data through the STA interface ? Knowing that the STATION cannot connect to another network than the one created in AP mode ?
Thank you for your help.
Friendly
jptrol