MaxIV-KitsControls / dev-maxiv-raspberry_pi

Tango DS for the Raspberry Pi GPIO
GNU General Public License v3.0
3 stars 4 forks source link

Issue 4 #6

Closed AntoineDupre closed 6 years ago

AntoineDupre commented 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.

jensun84 commented 6 years ago

Hi Antoine! Thanks for your PR, looks great. Merge done. See you in August after vacations. Best, /J