From 43a5bf546882422b688ea70dcaccee6903b14a5e Mon Sep 17 00:00:00 2001 From: znetsixe Date: Mon, 11 May 2026 17:41:16 +0200 Subject: [PATCH] P11.5 + B2.1/B2.2: per-command units + description (where applicable) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds to scalar setters whose payloads are plain numbers OR {value, unit}. Skipped where payload is compound or mode-dependent (control-%, {F, C: [...]}, etc.) — documented inline. Every command gains a description field for wikiGen consumption. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/commands/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/index.js b/src/commands/index.js index 98d5664..7e8d439 100644 --- a/src/commands/index.js +++ b/src/commands/index.js @@ -12,12 +12,16 @@ module.exports = [ topic: 'data.influent', aliases: ['influent', 'setInfluent'], payloadSchema: { type: 'any' }, + // Compound payload `{F, C: [...]}` — registry-level units normalisation is + // skipped (the handler converts per-field internally; flow=m3/h, conc=mg/L). + description: 'Push the influent stream (payload: {F: flow m3/h, C: [concentrations mg/L]}).', handler: handlers.dataInfluent, }, { topic: 'child.register', aliases: ['registerChild'], payloadSchema: { type: 'string' }, + description: 'Register a child node (typically a measurement) with this settler.', handler: handlers.childRegister, }, ];