I don't think your code was doing a broadcast as you didn't send to the 
broadcast address. However, I've finally got something working by copying 
this - http://nikhilm.github.io/uvbook/networking.html#udp.

Sender:
bcaddr = IPv4(255,255,255,255) 

anyaddr = IPv4(0,0,0,0)

s = UdpSocket()

Base.bind(s, anyaddr, 0)

Base.setopt(s, enable_broadcast=1)

send(s, bcaddr, 1024, "Hello")

Receiver:
anyaddr = IPv4(0,0,0,0)
s = UdpSocket()
bind(s, anyaddr, 1024)
println(recv(s))


I will now try to talk to my hardware again this evening (lunch break at 
the moment).

--bob


On Wednesday, February 5, 2014 7:57:34 PM UTC, Bob Cowdery wrote:
>
> Does the network i/o package support UDP as it only seems to have TCP 
> functions.
>
> Thanks
> Bob
>

Reply via email to