Description
Hello sandeepmistry,
I need your help with this problem, I've managed to master a good part of the Arduinomodbus library, and in C language I have a great knowledge, but I really can't get over this problem, in example (ModbusRTUClientKitchenSink), after the void loop you specified functions for write a single coil, read single register, etc.(the comments after the voids of each function)
I am trying to use ModbusRTUClient.coilread, and also .write, but it returns me -1 or some strange character, sometimes does not return anything, other functions I use normally, but these I can't. Thanks if you can help me. I am using an Arduino mega 2560 as client, and a pro mini as server, I do not think the problem is in one of them because so far the Arduinos have done several things I did with this library, I will attach the part of the code as image. I don't know if I'm making a stupid mistake, don't notice my english, it's not the best :)
I've done without client.read, I've used other functions but it didn't work