Script execution
This commit is contained in:
@@ -16,9 +16,9 @@ class RobotTCP(TcpDevice):
|
||||
self.trailer = "\n"
|
||||
self.msg_id = 0
|
||||
|
||||
def _sendReceive(self, id, msg = ""):
|
||||
def _sendReceive(self, msg_id, msg = ""):
|
||||
tx = self.header if (self.header != None) else ""
|
||||
tx = tx + id + " " + msg
|
||||
tx = tx + msg_id + " " + msg
|
||||
if (len(tx)>127):
|
||||
raise Exception("Exceeded maximum message size")
|
||||
self.getLogger().finer("TX = " + str(tx))
|
||||
@@ -44,9 +44,8 @@ class RobotTCP(TcpDevice):
|
||||
raise Exception("Exceeded maximum number of parameters")
|
||||
for arg in argv:
|
||||
msg = msg + "," + str(arg)
|
||||
ret = self.call(msg)
|
||||
return ret;
|
||||
|
||||
return self.call(msg)
|
||||
|
||||
def get_event(self):
|
||||
return self._sendReceive("EVT")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user