forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PowerMeter: gracefully handle non-float MQTT values * PowerMeter: update _lastPowerMeterUpdate conservatively update the timestampt only if the topic actually matched any subscription and if the value could be parsed as a float. * PowerMeter: unsubscribe before subscribing * PowerMeter: organize subscriptions in a map this allows for a slightly more elegant code and reduced amount of code overall. * PowerMeter: clean up header * move private methods to private section of class declaration. * remove unused member variable.
- Loading branch information
1 parent
9bc334e
commit 6b425d9
Showing
2 changed files
with
51 additions
and
51 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