¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

incoming strings on TCP/IP


 

I am creating a TCP/IP module but noticed on the SOCKETRECIEVE CLIENT data is missed. I added a local buffer to accumulate the data before transmitting? "Client_Rx$ =? CLIENT.SocketRxBuf" but on initial trigger or a reboot some data is missing. If I retrigger again then all works.


 

Have you tried clearing the socket buffer on startup, in Main() for example?

CLEARBUFFER(CLIENT.SocketRxBuf);


 

If the string has a delimiter add a gather to the socket Rx.