04.09.2017, 06:45
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:
Then you can use lmcore.hextostr to convert hex-data to a string.
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.