forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: SML power meter: handle checksum error
cache the values decoded in the SML datagram and only copy them to the local stash of values if the checksum of the SML datagram matched. also makes sure that values from incomplete SML datagrams are not used. moreover, we now only publish values to the MQTT broker that we actually decoded (successfully) from an SML datagram (we previously published 0.0 as values to topics we never decoded a value for).
- Loading branch information
1 parent
5be1615
commit ea45497
Showing
2 changed files
with
62 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters