You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package m9z
|
|
|
|
import (
|
|
"github.com/towgo/towgo/errors/terror"
|
|
)
|
|
|
|
func Save(deviceId string) error {
|
|
writeResp, err := WriteCmd(deviceId, save, nil, "保存设置")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
if !writeResp.Success {
|
|
return terror.New("设置失败")
|
|
}
|
|
return nil
|
|
}
|