diff --git a/script/local.py b/script/local.py index a394768..4ddfbc8 100644 --- a/script/local.py +++ b/script/local.py @@ -2,16 +2,16 @@ # Deployment specific global definitions - executed after startup.py ################################################################################################### + from ch.psi.pshell.serial import TcpDevice from ch.psi.pshell.modbus import ModbusTCP -#TcpDevice + class RobotTCP(TcpDevice): - def __init__(self, server): - DeviceBase.__init__(self, server) + def __init__(self, name, server): + TcpDevice.__init__(self, name, server) def run(self): - print "Done" + print "Done"\ - -add_device(RobotTCP("127.0.0.1:3333"), force = True) \ No newline at end of file +#add_device(RobotTCP("robot_tcp", "127.0.0.1:3333"), force = True) \ No newline at end of file