Fix querying LED status
In firmware version 3.0.* the LED status is exposed in a more
generalized settings endpoint /api/v1/set_device with a response body
like:
{
"error": "ok",
"message": "all values retrieved",
"data": {
"username": "admin",
"login_password": "",
"led": "true",
"http_state": "false"
},
"token": "xxxxx"
}
This commit is contained in:
parent
6416edb90c
commit
cd1acd3804
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ func (v *VodafoneStation) GetCallLog() (*CallLog, error) {
|
|||
}
|
||||
|
||||
func (v *VodafoneStation) GetLedSetting() (*LedSettingResponse, error) {
|
||||
responseBody, err := v.doRequest("GET", v.URL+"/api/v1/set_led?_="+strconv.FormatInt(makeTimestamp(), 10), "")
|
||||
responseBody, err := v.doRequest("GET", v.URL+"/api/v1/set_device?_="+strconv.FormatInt(makeTimestamp(), 10), "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue