Skip to content

Commit 9b8501b

Browse files
committed
Adding timeout parameter to post serial
1 parent c573fcb commit 9b8501b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uc2rest/UC2Client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def post_json(self, path, payload, getReturn=True, nResponses=1, timeout=1):
173173
elif self.is_serial or self.isPyScript:
174174
if timeout <=0:
175175
getReturn = False
176-
return self.serial.post_json(path, payload, getReturn=getReturn, nResponses=nResponses)
176+
return self.serial.post_json(path, payload, getReturn=getReturn, timeout=timeout, nResponses=nResponses)
177177
else:
178178
self.logger.error("No ESP32 device is connected - check IP or Serial port!")
179179
return None

0 commit comments

Comments
 (0)