22.10.2023, 11:48
(22.10.2023, 11:45)Azar Wrote:In your code if I m looking good before the /r' there's this char "`" and it is wrong. You must change with this " ' ".(22.10.2023, 10:21)CristianAgata Wrote:(21.10.2023, 22:16)Azar Wrote:Hi,(21.10.2023, 10:56)Erwin van der Zwart Wrote: Like this:
Code:value = GetCBusLevel(0, 127, 10)
command = 'CS 34 ' .. (value * 257) .. ‘\r'
sock:send(command)
I'm getting a error
Lua syntax error at line 9: unexpected symbol near '\'
How do I get "value x 257" into "command" so that it can be sent
There is an error in the char ` use '.
Best regards Cristian
Hi Cristian, would you kindly explain in more detail? I'm not sure what you mean!°
Best regards Cristian