Closed kellerza closed 10 months ago
Related, what is the best way to ensure a reliable conneciton for constant monitoring?
Is auto_reconnect=True
enough? Or would you recommend to disconnect & reconnect on a V5FrameError?
Most of the time auto_reconnect is OK. I ended up with handling (NoSocketAvailable, struct.error) in a try/except block, read retry after a second and reconnecting if it fails again. This is the result
Edit: Thanks for your work on sunsynk. I learned a lot from there during my DEYE research.
Thanks @githubDante !
Are you using this to read,- would you recommend re-creating the driver on each read as well?
No. I use a data collect daemon/service built around the library and pysolarman. It is connected to the datalogger 24/7.
I think this is already way beyond the scope of this pull request, so let's move the conversation to an issue if necessary.
Well spotted @kellerza. Thanks for your contribution.
From the docs it seems this parameter should be
v5_error_correction
and noterror_correction
?