google / python-lakeside

Apache License 2.0
45 stars 18 forks source link

hottest vs. coldest, type of bulb and broken pipe/struct errors #9

Closed dclobato closed 5 years ago

dclobato commented 6 years ago

Updated the example: -- temperature=100 is the coldest color, not hottest -- bulb method requires three parameters: address, code and type/kind of bulb

Handle disconnection and BrokenPipe/struct.errors -- disconnection is perceived during the recv(), so at receiving zero bytes, we do a reconnect, reissue the command, and receive data again. Definitely not the best solution for this, but at least it is working now.

mjg59 commented 5 years ago

Closing as these patches are already merged.