Changed modbus address in minimalmodbus_test.py
This commit is contained in:
parent
cfc32b28c2
commit
b8718935f7
@ -3,7 +3,7 @@ from time import sleep
|
||||
import minimalmodbus
|
||||
import serial
|
||||
|
||||
slave_address = 0x11
|
||||
slave_address = 254
|
||||
instrument = minimalmodbus.Instrument('/dev/ttyUSB0', slave_address, close_port_after_each_call=True) # port name, slave address (in decimal)
|
||||
|
||||
instrument.serial.baudrate = 115200
|
||||
|
Loading…
Reference in New Issue
Block a user