Compare commits
1 Commits
497f05d92c
...
15b7414d41
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15b7414d41 |
@@ -14,27 +14,32 @@ module.exports = [
|
|||||||
// Toggle — payload is ignored. `any` keeps the registry validator happy
|
// Toggle — payload is ignored. `any` keeps the registry validator happy
|
||||||
// for legacy callers that ship trigger payloads of various shapes.
|
// for legacy callers that ship trigger payloads of various shapes.
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Toggle the built-in simulator on / off.',
|
||||||
handler: handlers.setSimulator,
|
handler: handlers.setSimulator,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'set.outlier-detection',
|
topic: 'set.outlier-detection',
|
||||||
aliases: ['outlierDetection'],
|
aliases: ['outlierDetection'],
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Toggle / configure outlier detection on the measurement pipeline.',
|
||||||
handler: handlers.setOutlierDetection,
|
handler: handlers.setOutlierDetection,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'cmd.calibrate',
|
topic: 'cmd.calibrate',
|
||||||
aliases: ['calibrate'],
|
aliases: ['calibrate'],
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Trigger a one-shot calibration of the measurement.',
|
||||||
handler: handlers.calibrate,
|
handler: handlers.calibrate,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'data.measurement',
|
topic: 'data.measurement',
|
||||||
aliases: ['measurement'],
|
aliases: ['measurement'],
|
||||||
// Mode-dispatched: digital expects object, analog expects number/numeric
|
// Mode-dispatched: digital expects object (per-channel), analog expects
|
||||||
// string. The handler validates per-mode (the registry-level typeof
|
// number/numeric string in the configured Channel scaling units. Units
|
||||||
// check would reject one of the two valid shapes).
|
// are mode-dependent and resolved inside the handler — no registry-level
|
||||||
|
// `units` field.
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Push a raw measurement (analog: number; digital: per-channel object).',
|
||||||
handler: handlers.dataMeasurement,
|
handler: handlers.dataMeasurement,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user