This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

UDP SOCKET
#1
Hello:
We have several devices on the network that send packages continuously: energy meters.
We need to read these packages and we have tried using the following scritp:

if not server then
  require('socket')
  server = socket.udp()
  server:setsockname('*', 8891)
  server:settimeout(1)
end

data = server:receive()
if data then
  loghex(data)
end


If we log setsockename address already in use.
Is this method correct to receive that kind of data from network.
Thanks.
Reply


Messages In This Thread
UDP SOCKET - by Angeles - 12.09.2019, 08:37
RE: UDP SOCKET - by admin - 12.09.2019, 11:14
RE: UDP SOCKET - by Angeles - 27.09.2019, 11:54
RE: UDP SOCKET - by admin - 30.09.2019, 09:40

Forum Jump: