Closed Steve-Mcl closed 6 months ago
Not merging as pair PR not merged into forge app
No structural changes being made in the forge app around how it will send commands to the device agent. We are only shipping the restart
command initially as there are unresolved questions on the semantics of suspend
(and thus start
is also unnecessary).
@Steve-Mcl I think we're okay to merge this as-is?
No structural changes being made in the forge app around how it will send commands to the device agent. We are only shipping the
restart
command initially as there are unresolved questions on the semantics ofsuspend
(and thusstart
is also unnecessary).@Steve-Mcl I think we're okay to merge this as-is?
Yeah. Ben and I have tested against local and staging.
Ready to review, but please do not merge until both this and https://github.com/FlowFuse/flowfuse/pull/3548 are approved (in case of change requests from either side)
Description
Outline
Adds support for
suspend
,start
andrestart
MQTT command actions (via the platform device comms)Demo of FF side
Sample output from device agent when the actions are executed:
Details
mqtt.js
:"action"
targetState
property (persisted to the project file to ensure reboots to correct target state)"state"
strings into a an enum (was getting lost with all the supported states) $ added helper functions for verifying statecheckin
is now called when state changes inside the launcher (important now we have transitional state info reporting on FF and necessary for good UX on the Actions menu items availability)Tests added
Related Issue(s)
https://github.com/FlowFuse/flowfuse/issues/3292
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
backport
labelarea:migration
label