Posts: 1
Joined: Fri Dec 11, 2015 10:52 am

Broadcast a message using WifiMCU

Fri Dec 11, 2015 11:21 am

Hi All,

I am working on a small project which requires all the EMW3165 chips to behave as a client in a station mode. When I run a server for the first time, it will broadcast a message to all the devices in the network. The clients have to read that message and communicate back to the server so that it can be registered on the server.

I have created a server program (in java) using MulticastSocket which broadcast's a datagram (messag) at a specified address and port (let's say If I run a client program in Java, I can read the message being broadcast.

I am not able to create a client on wifimcu which can read the messages being broadcast by the server. I have gone through the reference documents and tried running sample UDP client programs but it did not help.

Can anyone guide me through this?

Thanks in advance.

Posts: 21
Joined: Wed Aug 19, 2015 1:06 am

Re: Broadcast a message using WifiMCU

Sun Dec 13, 2015 3:04 am

Would please post your wifimcu lua scripts here?
It's an easy udp applications in my mind.

A demo using udp broadcast method is shown below(In chinese).
You can check the lua scripts in this link.
I alos update the code in this post( check the udpserver.lua)

The demo shows an app in android send udp broadcast data to wifimcu at port 8089, the udp server will recieve the data and response.

May this help you.
(9.24 KiB) Downloaded 143 times
Software engineer from DoIT

Return to “WiFiMCU”

Who is online

Users browsing this forum: No registered users and 2 guests