Modbus icon indicating copy to clipboard operation
Modbus copied to clipboard

Modbus library for modern C++

Results 12 Modbus issues
Sort by recently updated
recently updated
newest added

If I create an ModbusRequest without any values, it uses the ctor with default values. There is a switch statement and a valid function code value is required, so exception...

Thanks for your great library. It works like a charm. I had to change a number of things to get it to work on windows and to let it compile...

enhancement

Hi, Mazurel. I have been trying to use your modbus library for a RTU project. It seems like a nice implementation and it supports CMake which I appreciate. I have...

bug
hardware needed

When adding this library to my project like described in the Readme.md, i get the following error. In file included from /home/bumblebee/dev/optimal-sensor/lib/Modbus/src/Serial/connection.cpp:5: /home/bumblebee/dev/optimal-sensor/lib/Modbus/include/MB/Serial/connection.hpp:15:10: fatal error: poll.h: No such file or...

bug

When parsing a request to generate a read coils response, the number of inputs is not parsed correctly. The bytes value should be a uint16_t instead of uint8_t. The standard...

The [MODBUS Application Protocol Specification V1.1b3](https://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf) defines the exception/error message as follows: ![Image](https://github.com/user-attachments/assets/f464f930-337c-4d37-baba-d144db5d5b38) Or in other words: ![Image](https://github.com/user-attachments/assets/08d4ddff-6007-4a34-940e-cd0c7cc3016b) Example for an exception/error resulting from a 02 (0x02) Read Discrete Inputs...

Add convenience function to generate a complete RTU frame. It's also logical to have a complementary function to ::fromRawCRC()

When constructing ModbusResponse from rawCRC data, field _address is left uninitialized. It's understandable to not fill this field as there is no information about it in the frame, BUT as...

Add support for TCP on Windows. Can be based on already existing PR, that is too old to be merged automatically: https://github.com/Mazurel/Modbus/pull/5

enhancement