The good news is, I get Modbus work. Settings were different from the datasheet.
The next thing that I'm struggling is, I'm listening to communication between WSC11 (Modbus slave) and greenhouse automatic (Modbus master).
Here is a picture from serial port debug:
What I noticed and understand if I'm looking WSC11 datasheet is that:
Slave address is 192,
Function code is 4.
In my buffer, I have not found a solution on how to split Buffer so 192 is buffer, 4 is buffer . Because there is no ending byte.
Can someone think along with me and give some instructions on how to get real data out from the binary buffer?