MIGRATION

changeset 664
8adbc76fd122
parent 663
fa39f9c0e219
child 668
4df4c8b17733
equal deleted inserted replaced
663:fa39f9c0e219 664:8adbc76fd122
53 5. Check for exit. 53 5. Check for exit.
54 Check for missing devices not in one wire table. 54 Check for missing devices not in one wire table.
55 Goto 2. 55 Goto 2.
56 6. Exit state. 56 6. Exit state.
57 57
58
59
60 Flow thermferm.
61 ---------------
62
63 Before:
64 Initialize all units.
65 Publish DBirth
66 Publish Startup
67
68 States (nested):
69
70 1. Init.
71 2. Check shutdown.
72 Check run_pause.
73 Wait for new minute.
74 3. Update clock on display.
75 Show room temp/humidity.
76 4. If THB changed or 5 minutes passed publish NData.
77 5. For units loop.
78
79 1. Init.
80 2. If air address
81 3. If beer address
82 4. If chiller address
83 5. If door address
84 6. If PSU address
85 7. If unit->mode == UNITMODE_PROFILE
86 8. If unit->mode == UNITMODE_NONE
87 9. Usage counters
88 10. If light address
89 11. if ((unit->mode == UNITMODE_FRIDGE) || (unit->mode == UNITMODE_BEER) || (unit->mode == UNITMODE_PROFILE)) // Temp control active
90 12. Update the LCD
91 13. Set unit->mqtt_flag |= MQTT_FLAG_DATA after 60 seconds
92 14. Publish what is needed.
93 15. Handle alarms.
94 16. End.
95
96 6. Show LCD buffer.
97 7. 60 seconds reset and actions.
98 8. Keyboard check.
99 9. Delay 100 mSec and goto 2.
100 10. Done.
101
102 After:
103 Stop all units.
104

mercurial