Closed limweichiang closed 3 years ago
Sorry for the messy PRs, I'm kinda getting used to collaborating on code using git, and should keep my branches cleaner. Please do review https://github.com/corbinbs/solarshed/pull/9 first, as the fix there should precede this.
Removed unsupported module-level constants for
BAUDRATE
andTIMEOUT
, instead using default arguments in the constructor to initialize the values for use on the pyserial object.This change took effect as of MinimalModbus 1.0 which the RenogyRover class inherits, refer to https://minimalmodbus.readthedocs.io/en/stable/usage.html#default-values
Before fixing, the following error was encountered: