diff --git a/script/local.py b/script/local.py index f564001..a394768 100644 --- a/script/local.py +++ b/script/local.py @@ -2,3 +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 run(self): + print "Done" + + +add_device(RobotTCP("127.0.0.1:3333"), force = True) \ No newline at end of file