Skip to content

Commit

Permalink
Merge pull request #26 from zoide/publish-interval
Browse files Browse the repository at this point in the history
Also send Interval when publishing stats
  • Loading branch information
kinkerl committed Jan 28, 2019
2 parents acdb439 + 4da8370 commit 44de239
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homie/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def publish_device_stats(self):
_time = time
if _time() > self.next_update:
uptime = _time() - self.start_time
self.publish(b"$stats/interval", self.stats_interval)
self.publish(b"$stats/uptime", uptime)
self.publish(b"$stats/freeheap", gc.mem_free())
# set next update
Expand Down

0 comments on commit 44de239

Please sign in to comment.