Skip to content

Commit

Permalink
add timeBrewed to MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
LoQue90 committed Sep 24, 2024
1 parent 22840a5 commit 6137f3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/brewHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
// move brewPIDDisabled to kBrew?
// add flush to display templates, SHOTTIMER 0
// check all Scale stuff
// add shot time log info output
// add shot time log info output
// check params website
// ...

#pragma once
Expand Down
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,9 @@ void setup() {
mqttSensors["currentKi"] = [] { return bPID.GetKi(); };
mqttSensors["currentKd"] = [] { return bPID.GetKd(); };
mqttSensors["machineState"] = [] { return machineState; };

#if FEATURE_BREWSWITCH == 1
mqttSensors["timeBrewed"] = [] { return timeBrewed / 1000; };
#endif
#if FEATURE_PRESSURESENSOR == 1
mqttSensors["pressure"] = [] { return inputPressureFilter; };
#endif
Expand Down

0 comments on commit 6137f3d

Please sign in to comment.