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.
curl --request GET \
--url https://api.telluspower.example.com/v1/device/commands \
--header 'Authorization: Bearer <token>'{
"code": 123,
"message": "<string>",
"data": {
"command_id": "<string>",
"command": "<string>",
"params": {},
"expiry": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telluspowergroup.com/llms.txt
Use this file to discover all available pages before exploring further.
Charger-side bearer token. Obtained by exchanging device_id and
device_secret (issued at registration) at /v1/device/token.
Valid for 24 hours.
x >= 1Maximum wait time in seconds.
1 <= x <= 60Command available, or no command (timeout).
Standard response envelope. code is 0 on success and a non-zero
application code on error (see Error Codes — §14).
curl --request GET \
--url https://api.telluspower.example.com/v1/device/commands \
--header 'Authorization: Bearer <token>'{
"code": 123,
"message": "<string>",
"data": {
"command_id": "<string>",
"command": "<string>",
"params": {},
"expiry": "2023-11-07T05:31:56Z"
}
}