Arduino Uno WiFi Broadcasting Issues

Hello,

I am new to Arduino's Uno Wifi and I have connected 2 unos to the same Wifi and I need to make them communicate ( Broadcasting ). Does anyone have any ideas ?

Thank you

Communication between two devices does not have to be broadcasting. Please explain what you actually want to do, without turning it into an XY-problem.

Pieter

Emnatz:
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

Arduino Uno WiFi Developer Edition? did you change the firmware or you still have the factory firmware?

Robin2:
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

I am using 2 Arduino Uno Wi-Fi with integrated Wi-Fi module(The ESP8266) for each one. 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

For the firmware yes it’s UNOWiFiDev.Edition i followed these instructions to update it : Arduino Uno WiFi
What i did is a first configuration to join the same WiFi network

You don't want broadcasting, you want multicasting.

Emnatz:
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

That's way too vague.

Do you want to send a continuous stream of data between the two at several Kbps, or just the occasional sensor reading or command?

We cannot recommend anything useful unless you tell us in detail what you want to do.

with UnoWiFiDevEd library only things from examples are possible, nothing more. there is a restsever example and a restclient example

The communication is to broadcast the UDP packets to all IP addresses on the network
I don't know how to send and receive UDP packets from one UnoWifi arduino to the other. Is it the same as when ESP8266 is not integrated?

UnoWiFiDevEd doesn't support UDP.

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 is
192.168.0.0/24
then 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.

I forgot about the UDP requirment. but why udp?

If you really need udp then change the firmware to WiFi Link.

Juraj:
I forgot about the UDP requirment. but why udp?

If you really need udp then change the firmware to WiFi Link.

I use UDP broadcasts for multiple device timing. If on a localnet, it is much faster than TCP.

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

Robin2:
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

+1

SurferTim:
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 is
192.168.0.0/24
then 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.

...Have you tried sending the UDP packets to the localnet broadcast address using just ESP8266 modules ?

Emnatz:
...Have you tried sending the UDP packets to the localnet broadcast address using just ESP8266 modules ?

No. Just ethernet and RPi wifi. Maybe somebody else has experience with the ESP8266.

I have used UDP on the ESP8266 for NTP and OSC, so it works.
I haven't tried broadcasting though, but that shouldn't be any different.

Emnatz:
...Have you tried sending the UDP packets to the localnet broadcast address using just ESP8266 modules ?

you can test with esp8266 on your Uno WiFi. write a sketch and upload it. (use EspProxy with Uno WiFi Serial1 library link)

Acctually my project is to make the Unos Arduino communicate with each others in the fisrt place via WiFi and I can not make this .
After i want to do a local network and when I send a message , all other boards listen to this message and if they concerned they will treat this message

Are you trying to reinvent the MQTT protocol?