11# NEWS
22
3+ ## libmodbus 3.1.11 (2024-10-22)
4+
5+ - RTU - Check CRC before filtering on slave ID
6+ - HAVE_NETINET_IN_H as guard around header (closes #765)
7+ - Use default port 502 in documentation.
8+ - Fix float endianness issue introduced in v3.1.8 (49af73d).
9+ Thank you @ghorwin for your excellent work on the subject.
10+ Closes #665, #694, #757, #770.
11+ - Proper display of used CFLAGS.
12+ - Don't build with debug flag by default anymore.
13+ - Check request length in `modbus_reply` when used in `memcpy`.
14+ Thank you Nozomi Networks Labs Advisory for the report.
15+ - Fix insecure data handling. CID 416366: INTEGER_OVERFLOW found with Coverity
16+ Scan.
17+ - Remove useless cast in setsockopt call (closes #721)
18+ - Link against socket and nsl libs when building on SunOS. Thank you @lanurmi.
19+ - Update documentation about tcp-pi requiring 1 KiB of extra memory (closes #715).
20+ Thank you @psychon.
21+ - Documentation improvements by @cedricboudinet and @mhei.
22+ - Revert TCP checks for recovery (closes #711).
23+ - Don't use loop initial declaration (closes #752).
24+ - Fix wrong generated version for double number in win32 (closes #675).
25+ - Don't use gai_strerror if not available.
26+ - Add checks for netinet/ip.h and gai_strerror (#745)
27+ - Log error in read input registers if debug (closes #755).
28+ - Fix errno value on timeout with TCP connect (closes #736, #756).
29+ Thank you @kyllingstad for the issue and @psychon for the fix.
30+ - Free addrinfo struct on getaddrinfo() gerrors.
31+ - Fix doc of modbus_mapping_new_start_address (#615).
32+
333## libmodbus 3.1.10 (2022-12-07)
434
535Urgent release to fix a regression.
@@ -388,7 +418,7 @@ RTS flow control.
388418- Enable RS485 support only when available
389419- Export modbus_set/get_serial_mode functions on all platforms
390420- API change for read/write multiple registers function:
391- - modbus_read_and_write_registers -> modbus_write_and_read_registers
421+ - modbus_read_and_write_registers -> modbus_write_and_read_registers
392422 The function name was confusing because the write operation is performed
393423 before the read. Take care to swap the arguments in the migration process.
394424- Documentation of modbus*write_and_read_registers, modbus_mapping_new/free,
@@ -411,13 +441,13 @@ RTS flow control.
411441 modbus_receive_confirmation)
412442- Fix flush function of TCP backend on Windows
413443- API changes for server/slave:
414- - modbus_receive doesn't take socket/fd argument anymore
415- - new function modbus_set_socket to set socket/fd
444+ - modbus_receive doesn't take socket/fd argument anymore
445+ - new function modbus_set_socket to set socket/fd
416446- API changes for timeout functions:
417- - modbus_get_timeout_begin -> modbus_get_response_timeout
418- - modbus_set_timeout_begin -> modbus_set_response_timeout
419- - modbus_get_timeout_end -> modbus_get_byte_timeout
420- - modbus_set_timeout_end -> modbus_set_byte_timeout
447+ - modbus_get_timeout_begin -> modbus_get_response_timeout
448+ - modbus_set_timeout_begin -> modbus_set_response_timeout
449+ - modbus_get_timeout_end -> modbus_get_byte_timeout
450+ - modbus_set_timeout_end -> modbus_set_byte_timeout
421451- Fix longstanding limitation of server to wait forever
422452- New functions modbus_set/get_serial_mode by Manfred Gruber and Stéphane
423453 Raimbault for RS485 communications
@@ -434,9 +464,9 @@ RTS flow control.
434464 modbus_reply_exception()
435465- New function modbus_get_header_length(modbus_t \*ctx)
436466- New functions to manipulate data:
437- - MODBUS_GET_INT32_FROM_INT16
438- - MODBUS_GET_INT16_FROM_INT8
439- - MODBUS_SET_INT16_TO_INT8
467+ - MODBUS_GET_INT32_FROM_INT16
468+ - MODBUS_GET_INT16_FROM_INT8
469+ - MODBUS_SET_INT16_TO_INT8
440470- Fix GH-2. Read/write were swapped in \_FC_READ_AND_WRITE_REGISTERS
441471- Install an ignore handler for SIGPIPE on \*BSD
442472 Original patch by Jason Oster.
@@ -506,8 +536,7 @@ RTS flow control.
506536
507537Other changes:
508538
509- - The code is now published and developed on
510- <http://github.com/stephane/libmodbus>
539+ - The code is now published and developed on <http://github.com/stephane/libmodbus>
511540- Waf support has been removed
512541
513542## libmodbus 2.0.3 (2009-03-22)
0 commit comments