Changed modbus address in minimalmodbus_test.py
This commit is contained in:
1 parent
cfc32b28c2
commit
b8718935f7
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user