Closed ethanjli closed 3 years ago
@rohanpurohit How much of this issue is covered by #370? I see you implemented "Connecting..." button text, but I'm not sure about the "When MCU is lost, allow the frontend to tell the backend that it should tell the MCU to Start/Pause Ventilation once the MCU is back up" part.
but I'm not sure about the "When MCU is lost, allow the frontend to tell the backend that it should tell the MCU to Start/Pause Ventilation once the MCU is back up" part.
Ya, this is not implemented yet, we are kind of blocked by having a selector for the connection right, that would make it easy?
That makes sense, so this issue is pending completion of #371
Sequence of events (strongly needed):
Sequence of events (desirable):
Sequence of events (optional/undesirable but tolerable):
Sequence of events (preferred, and what we already have):
Sequence of events (preferred):
Sequence of events (preferred):
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Ventilation | Firrmware Connected | Request | Response | Button Label | Button Disabled -- | -- | -- | -- | -- | -- FALSE | TRUE | TRUE | TRUE | Pause Ventilation | NO FALSE | TRUE | TRUE | FALSE | Starting… | YES FALSE | TRUE | FALSE | FALSE | Start Ventilation | NO FALSE | FALSE | TRUE | - | Starting… | YES FALSE | FALSE | FALSE | - | Start Ventilation | NO FALSE | FALSE | - | - | Connecting… | YES TRUE | TRUE | TRUE | TRUE | Pause Ventilation | NO TRUE | TRUE | FALSE | TRUE | Pausing… | YES TRUE | TRUE | FALSE | FALSE | Start Ventilation | NO TRUE | FALSE | TRUE | - | Pause Ventilation | NO TRUE | FALSE | FALSE | - | Pausing… | YES
When MCU is lost, allow the frontend to tell the backend that it should tell the MCU to Start/Pause Ventilation once the MCU is back up. In other words, the Start/Pause Ventilation button shouldn't be automatically changed to disabled. However, whenever parameters.current.ventilating != parameters.request.ventilating, the Start/Pause ventilation button should say "Connecting..."
This issue was split off from https://github.com/pez-globo/pufferfish-software/pull/344#issuecomment-841357911