SimpleTCP
SimpleTCP copied to clipboard
Multi-byte delimiter support
Had a situation the other day where XML messages were coming across a TCP connection.
Thought it would be nice to be able to specify a multi-byte delimiter to split messages, for example '/whatever>' could be the end of a message.
Adding an issue so I don't forget the next time I have a few hours to implement or if someone else wants to take a shot at it.
This would be great. I am receiving data from a GPS tracker over TCP with messages ending in a 2 byte delimeter 0x0D 0x0A (carriage return and line feed). If memory servers, the NMEA protocol also has the same stop bytes...
The PLC I'm listening to also uses 0x0D0A as delimiter. Would be great to add multi-byte delimiter support.