21.05.2025, 09:11
Hi Admin,
I have connection to a Ecler Matrix, the connection is there, but on UDP receive i get multiple answers but i have no cleu how to get them until the full response is ready, do you have a solution?
Each receive gives me the next reponse line, but i want them all until it's done with one receive call...
I have connection to a Ecler Matrix, the connection is there, but on UDP receive i get multiple answers but i have no cleu how to get them until the full response is ready, do you have a solution?
Code:
client:sendto("SYSTEM CONNECT\n\r", '192.168.1.246', 5800)
result = client:receive()
log(result)
result = client:receive()
log(result)
result = client:receive()
log(result)
result = client:receive()
log(result)
result = client:receive()
log(result)
Each receive gives me the next reponse line, but i want them all until it's done with one receive call...