Feedback
TCPClient supports binary reads and writes using MemoryBlock
- Status
- Fixed
- Fixed in
- v26.11.1
- Area
- compiler
- Source discussion
- https://forum.objo.dev/d/1475-modbus-has-arrived
- Last updated
- 2026-11-04
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Add TCPClient.ReadBytesAsync(byteCount As Integer) and TCPClient.WriteBytesAsync(data As MemoryBlock) so Objo applications can receive and send binary data without text encoding or decoding.
Binary reads resolve to a MemoryBlock containing the received bytes. Binary writes send the block's bytes unchanged, without a newline or byte-order mark. Existing String-based methods remain available for text protocols.
This allows applications to use binary TCP protocols such as Modbus directly, without needing a plugin solely to transport raw bytes.