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 SOCKET
#4
ModBus won't work like this as ModBus TCP is a different protocol.

If you are calling socket:receive() without any arguments it will try to read a whole line ending with \n character. For binary protocols this won't work correctly. You can read data by one byte at a time: byte, err = socket:receive(1)
Reply


Messages In This Thread
UDP SOCKET - by Angeles - 12.09.2019, 08:37
RE: UDP SOCKET - by admin - 12.09.2019, 11:14
RE: UDP SOCKET - by Angeles - 27.09.2019, 11:54
RE: UDP SOCKET - by admin - 30.09.2019, 09:40

Forum Jump: