Apollo3zehn / FluentModbus

Lightweight and fast client and server implementation of the Modbus protocol (TCP/RTU).
MIT License
204 stars 71 forks source link

MBAP header is read without regard to host endianness. #123

Open iamalexcater opened 1 month ago

iamalexcater commented 1 month ago

Class: ModbusTcpRequestHandler

BitConverter.IsLittleEndian ought to be consulted when reading the MBAP header in TryReceiveRequestAsync().

The WriteFrame(...) method already does this when writing the header.