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.

TCP/ip connect and maintain connection
#6
(21.10.2023, 22:16)Azar Wrote:
(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
Hi,
There is an error in the char ` use '.
Best regards Cristian
Reply


Messages In This Thread
RE: TCP/ip connect and maintain connection - by CristianAgata - 22.10.2023, 10:21

Forum Jump: