Closed AntoineDupre closed 6 years ago
As @reszelaz reports in issue #4 , it is not possible to change all ouputs or voltage in a row.
The TCP server read everything in the buffer (data = self.request.recv(1024).strip()) so we receive the following answer:
b'5 SETOUTPUT True7 SETOUTPUT True11 SETOUTPUT True12 SETOUTPUT True13 SETOUTPUT True15 SETOUTPUT True16 SETOUTPUT True'
The gpio_action method only parse the 2 first elements.
This PR add query end of frame symbol (";") and allow the TCP server to run several gpio_action after one tcp reading.
Hi Antoine! Thanks for your PR, looks great. Merge done. See you in August after vacations. Best, /J
As @reszelaz reports in issue #4 , it is not possible to change all ouputs or voltage in a row.
The TCP server read everything in the buffer (data = self.request.recv(1024).strip()) so we receive the following answer:
The gpio_action method only parse the 2 first elements.
This PR add query end of frame symbol (";") and allow the TCP server to run several gpio_action after one tcp reading.