stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.29k stars 1.71k forks source link

Setting transaction id in modbus_send_raw_request #682

Open cedricboudinet opened 1 year ago

cedricboudinet commented 1 year ago

Hello

modbus_send_raw_request sets the transaction id to 0. In some case, it is necessary to force its value. I added a new function (modbus_send_raw_request_tid) that allows one to set the t_id. I let modbus_send_raw_request for backward compatibility.

Are you ok with the function name? Regards

cedricboudinet commented 1 year ago

Hello @stephane. Do you think it possible to merge this PR?

stephane commented 1 year ago

This one and others, I should have more time starting next week.