standardize device operation responses with codes and richer local simulations

This commit is contained in:
DBT
2026-02-24 16:27:37 +00:00
parent 04cbb22c57
commit bbc0690eaa
5 changed files with 32 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ type Request struct {
// Envelope for node responses.
type Response struct {
OK bool `json:"ok"`
Code string `json:"code,omitempty"`
Error string `json:"error,omitempty"`
Node string `json:"node,omitempty"`
Action string `json:"action,omitempty"`