(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! Are you pointing to the end of the second line ? Just prior to the backslash?