A Modbus library for Linux, Mac OS, FreeBSD and Windows
Yet another stable release with minor fixes.
modbus_mapping_free
against NULL argument. Thanks to Andrea Mattia.This new bugfix release contains the following changes:
modbus_mapping_free
not freeing memory. Thanks to Stefan Finzel for the bug report.More robust to exploits, more compliant and better handling of connect/close sequences. Windows support still broken.
write_single
and
mask_write_register
. Thanks to James Nutaro.modbus_rtu_set_rts
modbus_get|set_float_dcba
to get|set float in inversed byte ordermodbus_mask_write_register
(closes #91). Thanks to Martijn de Gouw.modbus_mapping_new
modbus_rtu_set_serial_mode
All changes w/o attribution by @stephane
libmodbus v3.0.x branch has been updated to include important fixes from v3.1.1.
OK last year, I've silently released libmodbus v3.1.0 and it's never too late to announce it!
Major changes to handle many slaves in RTU mode, non blocking connections and RTS flow control.
_modbus_tcp_pi_connect()
on failure (closes )modbus_rtu_set_rts
and modbus_rtu_get_rts
functions by Torello Querci and Stéphane Raimbault.This new development release contains new features about server listening and timeout handling.
If you still want to listen any addresses in your TCP IPv4 server, you must now
set the IP address to NULL in modbus_new_tcp
before listening. Now,
modbus_tcp_listen
only listen the IP address set in the Modbus context (see
documentation).
This release introduces API changes on modbus_get_byte_timeout
,
modbus_get_response_timeout
, modbus_set_byte_timeout
,
modbus_set_response_timeout
to ease writing of language bindings.
modbus_new_rtu
when baud is 0.
Thank you to Daniel Schürmann.connect()
in source code (closes #194)modbus_connect()
on win32 (closes #100 and #165)
Thank you Petr Gladkiy and Marjan Tomas.modbus_tcp_pi_listen
(#187)INADDR_*
macros are defined in host byte orderMODBUS_MAX_PDU_LENGTH
(closes #167)report_slave_id
to new max arg (closes #167)tcp[_pi]_accept
(closes #31)modbus_tcp_listen
documentationmodbus_tcp_pi_listen
All changes w/o attribution by @stephane
Many fixes and improvements on data mapping, float handling and RTS.
The structure modbus_mapping_t
has been extended to include the new start
addresses (ABI break).
New function: modbus_mapping_new_start_address
modbus_mapping_new_start_address
.
Thanks to Michael Heimpold and Stéphane Raimbault.MSG_DONTWAIT
to MSG_NONBLOCK
on AIX (#294).
Thanks to Fabrice Cantos.modbus_rtu_[get|set]_delay
in documentation index.ILLEGAL_DATA_ADDRESS
tests for modbus_write_register[|s]
.
Thanks to Andrey Skvortsov.modbus_rtu_set_rts
modbus_reply[|_exception]
(closes #269).modbus_mask_write
_register (#265).MODBUS_MAX_ADU_LENGTH
and documentation (ref #241).All changes w/o attribution by @stephane
Small fixes, Cygwin improvements and fix missing script in tarball
C_PROG_RANLIB
is rendered obsolete by LT_INIT__CYGWIN__
modbus_reply()
response_exception()
README.md
in tests/modbus_*_float_*
functions in indexmodbus_report_slave_id
doc.MODBUS_GET_*
macros in case of negative values by @i-ky in https://github.com/stephane/libmodbus/pull/441
AC_PROG_CC_STDC
by AC_PROG_CC
.dir-locals.el
(Emacs) by .editorconfig
All changes w/o attribution by @stephane.
Full Changelog: https://github.com/stephane/libmodbus/compare/v3.1.6...v3.1.7