Skip to content

Commit

Permalink
Merge pull request #72 from openUC2/mergemaster
Browse files Browse the repository at this point in the history
Adding timeout parameter to post serial
  • Loading branch information
beniroquai authored Feb 26, 2024
2 parents 1b05844 + fe12f33 commit bce1950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uc2rest/UC2Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def post_json(self, path, payload, getReturn=True, nResponses=1, timeout=1):
elif self.is_serial or self.isPyScript:
if timeout <=0:
getReturn = False
return self.serial.post_json(path, payload, getReturn=getReturn, nResponses=nResponses, timeout=timeout)
return self.serial.post_json(path, payload, getReturn=getReturn, timeout=timeout, nResponses=nResponses)
else:
self.logger.error("No ESP32 device is connected - check IP or Serial port!")
return None
Expand Down

0 comments on commit bce1950

Please sign in to comment.