Attenuator Endpoints
GET /api/attenuator
Returns the current attenuation setpoint in dB.
Response:
POST /api/attenuator
Sets the attenuation setpoint in dB.
Request:
Valid range: 0 to 95.25 dB in steps of 0.25 dB.
Response:
Errors:
400— Invalid request body500— Failed to set setpoint (value out of range or invalid step size)
GET /api/attenuator/startup
Returns the startup attenuation setpoint — the value applied when the device boots.
Response:
POST /api/attenuator/startup
Sets the startup attenuation setpoint. This value is persisted and applied on every device boot.
Request:
Valid range: 0 to 95.25 dB in steps of 0.25 dB.
Response:
Errors:
400— Invalid request body500— Failed to save startup setpoint
Examples:
# Set attenuation to 20 dB
curl -X POST -H "Content-Type: application/json" \
-d '{"setpoint": 20.0}' \
http://<device-ip>/api/attenuator
# Query current setpoint
curl http://<device-ip>/api/attenuator
# Save 30 dB as the startup default
curl -X POST -H "Content-Type: application/json" \
-d '{"startup_setpoint": 30.0}' \
http://<device-ip>/api/attenuator/startup