Charger — Commands
Fetch pending command (long polling)
The charger polls for pending commands using long polling. If no command is available, the request hangs until the timeout expires (default 30 seconds, max 60) or a command arrives.
Related: proposed remote diagnostic command types (reboot, run_self_test, calibrate_sensor, fetch_logs) are documented in Proposed Extensions.
GET
Fetch pending command (long polling)
Authorizations
Charger-side bearer token. Obtained by exchanging device_id and
device_secret (issued at registration) at /v1/device/token.
Valid for 24 hours.
Query Parameters
Required range:
x >= 1Maximum wait time in seconds.
Required range:
1 <= x <= 60Response
200 - application/json
Command available, or no command (timeout).