Funkce /api/get vrací hodnoty parametrustav zařízení. Odpověď je ve formátu json.
Metoda: POST
Blok kódu | language | py|
---|---|---|
| ||
{
"param": [
"sntp_enable",
"sntp_server",
"sntp_timeout",
"sntp_period",
"dev_sn",
"test_wr_param"
]
} |
Blok kódu |
---|
{ "status": { "sntp_timeout": "undefined", "test_wr_param": "access_denied" }, "value": { "sntp_enable":"no", "sntp_server": "ntp.cesnet.cz", "sntp_period": 2, "dev_sn": "00000013" } } |