write_registerWrite register. Requires hub, unit, address and value fields. value can be either single value or an arrayService Data Attributes
Attribute
Description
hubHub name (defaults to ‘default’ when omitted)
unitSlave address (1-255, mostly 255 if you talk to Modbus via TCP)
addressAddress of the Register (e.g., 138)
valueA single value or an array of 16-bit values. Single value will call modbus function code 6. Array will call modbus function code 16. Array might need reverse ordering. E.g., to set 0x0004 you might need to set [4,0]Log warning (v1.0.8 and onwards)