GET /api/debug/adc/, POST /api/debug/adc/start/, POST /api/debug/adc/stop/
Raw ADC data and intermediate measurement results for each channel. Intended for calibration and diagnostics.
Auth: Bearer (powerUser).
start and stop additionally require diagnostic mode to be active. No service key is required.
Response 200
Section titled “Response 200”{ "diagnostic": { "active": true, "ready": true, "sensorTypeId": 0, "gain": "x24" }, "mcuTemperature": 42.3, "channels": [ { "filteredAdc": 69020, "resistance": 109.73, "temperature": 25.1, "gain": "x24", "circuitState": "NORMAL" }, { "filteredAdc": 130000, "resistance": 206.68, "temperature": null, "gain": "x24", "circuitState": "OPEN_CIRCUIT" }, { "filteredAdc": 320, "resistance": 0.51, "temperature": null, "gain": "x24", "circuitState": "SHORT_CIRCUIT" }, { "filteredAdc": 0, "resistance": 0.0, "temperature": null, "gain": "x24", "circuitState": "DISABLED" } ]}Response fields
Section titled “Response fields”| Field | Type | Description |
|---|---|---|
diagnostic.active | boolean | Whether the temporary channel configuration is active |
diagnostic.ready | boolean | Whether fresh data with stable states for all channels has been received |
diagnostic.sensorTypeId | number | Temporarily selected sensor type from GET /api/reference/sensor-types/; present when active=true |
diagnostic.gain | string | Calculated gain; present when active=true |
mcuTemperature | number|null | Internal MCU sensor temperature (°C), or null if invalid |
channels | array | 4 items (CH1..CH4) |
channels[].filteredAdc | number | Filtered raw ADC value |
channels[].resistance | number | Calculated resistance (ohms) |
channels[].temperature | number|null | Calculated temperature (°C), or null if invalid |
channels[].gain | string | Gain: "x2" or "x24" |
channels[].circuitState | string | Circuit state |
circuitState values
Section titled “circuitState values”"NORMAL""OPEN_CIRCUIT""SHORT_CIRCUIT""UNDER_RANGE""OVER_RANGE""DISABLED""UNKNOWN"
POST /api/debug/adc/start/
Section titled “POST /api/debug/adc/start/”Temporarily enables all four channels with the specified sensor type. The firmware selects the gain. Settings and flash are not modified.
The sensorTypeId value must be taken from the items[].id field in the response from
GET /api/reference/sensor-types/.
{ "sensorTypeId": 0 }Calling this endpoint again restarts accumulation and filtering. The response contains the diagnostic object; ready=false until fresh, stable data becomes available.
POST /api/debug/adc/stop/
Section titled “POST /api/debug/adc/stop/”Ends the test and restores the channel configuration from Settings. The request body is ignored. The mode also ends after 30 seconds without a GET /api/debug/adc/ request, or when diagnostic mode is exited.