Modbus library

(SC20260, preview 6)

In the calls:

            reply = mbMaster.ReadHoldingRegisters(0x01, 0, 1, 1000);
            mbMaster.WriteMultipleRegisters(0x01, 0x0a, w, 1000);

How much validation is done on the response ? correctly formed response, CRC ???
does the reply include the entire message ? ie slave with high bit, or just the contents of the registers requested ?
Is there a provision for asynchronous calls ?

What are the possible exceptions ?

This was contributed by the community but supported by us, so just point out what needs to be done and we will take care if it.

I’ve gone through the code and CRC checking is done along with checking the address in the response. What you get back is just the registers you requested when you do a read.

There many things that need to be fixed/enhanced. Is the code available someplace?

Every single library is here GitHub - ghi-electronics/TinyCLR-Libraries: Official Libraries supporting TinyCLR OS