Skip to content

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.


{
"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"
}
]
}
FieldTypeDescription
diagnostic.activebooleanWhether the temporary channel configuration is active
diagnostic.readybooleanWhether fresh data with stable states for all channels has been received
diagnostic.sensorTypeIdnumberTemporarily selected sensor type from GET /api/reference/sensor-types/; present when active=true
diagnostic.gainstringCalculated gain; present when active=true
mcuTemperaturenumber|nullInternal MCU sensor temperature (°C), or null if invalid
channelsarray4 items (CH1..CH4)
channels[].filteredAdcnumberFiltered raw ADC value
channels[].resistancenumberCalculated resistance (ohms)
channels[].temperaturenumber|nullCalculated temperature (°C), or null if invalid
channels[].gainstringGain: "x2" or "x24"
channels[].circuitStatestringCircuit state
  • "NORMAL"
  • "OPEN_CIRCUIT"
  • "SHORT_CIRCUIT"
  • "UNDER_RANGE"
  • "OVER_RANGE"
  • "DISABLED"
  • "UNKNOWN"

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.

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.