ccutrer / balboa_worldwide_app

Ruby library for communication with Balboa Water Group's WiFi module or RS-485
99 stars 27 forks source link

Add SerialPort data bits, parity, and stop bits configuration #88

Closed nlindn closed 3 months ago

nlindn commented 3 months ago

When using the Raspberry Pi with an RS485 hat, the BWA service fails to start and times out due to missing SerialPort configuration. This change adds the necessary data_bits, parity, and stop_bits settings during initialization to ensure proper communication and prevent the service from failing.

The configuration parameters are according to the Wiki page:

"The internal serial bus is RS-485 at 115200 baud, 8 bits per byte, no parity, 1 stop bit (115200/8-N-1)."