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 command usage problem
#2
Copas is not needed for this. It's needed when you either have several UDP servers or a TCP server. This example is enough for your script, just make sure that resident script sleep time is set to 0: https://forum.logicmachine.net/showthrea...90#pid5590

You can check if data is hex like this:
Code:
function ishex(s)
  return type(s) == 'string' and #s % 2 == 0 and s:match('^%x+$')
end

Then you can use lmcore.hextostr to convert hex-data to a string.
Reply


Messages In This Thread
UDP command usage problem - by AlexLV - 03.09.2017, 14:34
RE: UDP command usage problem - by admin - 04.09.2017, 06:45

Forum Jump: