Closed vidding closed 6 years ago
How to change device address in serial port mode? I see the code in line 76 of modbus-serial-client.js var base = Buffer.from([0x01]) Is it to modify 0x01?
var base = Buffer.from([0x01])
0x01
The ModbusRTUClient musst be instantiated with the address like this
let client = new modbus.client.RTU(socket, address)
How to change device address in serial port mode? I see the code in line 76 of modbus-serial-client.js
var base = Buffer.from([0x01])
Is it to modify0x01
?