Commit Graph
1 Commits
Author SHA1 Message Date
Ido Szargel 9ebcfe9cf4 Add socket timeout
When reading data through a device called 'chargee sparky' I noticed that every time the wireless connection of the device is lost it stops transmitting data.
dsmr_parser based on the example in the README doesn't do anything and will simply sit there for hours waiting for the next telegram.
Adding a 1 minute timeout and breaking allows something upstream to notice, in my case my python runs as systemd service and once it exits it's restarted.
2024-05-13 23:45:00 +02:00