rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
928 stars 402 forks source link

ReadProductCode() #31

Open hp-beko opened 4 years ago

hp-beko commented 4 years ago

Let's add the Read Device Information functionality to make world a better place.

xmenxwk commented 3 years ago

I've implemented something similar but its not good idea to hardcode number-of-read-byte to a small value. For instance my current device sends around 50 bytes of data for 0x2B function. This function is tricky and its not easy to know actual length of response without reading the entire response.