I am new to Arduino's Uno Wifi and I have connected 2 unos to the same Wifi
Does that mean you have two Unos and one WiFi module? If so how have you connected everything? Post a diagram.Also tell us what WiFi module you are using....R
What i want to do is to make the two arduinos communicate by broadcast Wifi, all arduinos must be able to listen to each other and speak
I forgot about the UDP requirment. but why udp?If you really need udp then change the firmware to WiFi Link.
It might be simpler just to ditch the Arduino WiFi boards and get some ESP8266-12 modules or something like the Wemos D1 boards.Then just program them as straight ESP8266s with all of the ESP8266 features available....R
Have you tried sending the UDP packets to the localnet broadcast address? That is the last IP address on the localnet.As an example, if your network is192.168.0.0/24then the broadcast address is 192.168.0.255.I haven't tried this on your device, but it seems to work with all others.But as mentioned by PieterP, your library must support UDP. I haven't checked that particular library.