(cfg config.Configuration)
| 282 | } |
| 283 | |
| 284 | func (p *Process) PostConfig(cfg config.Configuration) error { |
| 285 | buf := new(bytes.Buffer) |
| 286 | if err := json.NewEncoder(buf).Encode(cfg); err != nil { |
| 287 | return err |
| 288 | } |
| 289 | _, err := p.Post("/rest/system/config", buf) |
| 290 | return err |
| 291 | } |
| 292 | |
| 293 | func (p *Process) PauseDevice(dev protocol.DeviceID) error { |
| 294 | _, err := p.Post("/rest/system/pause?device="+dev.String(), nil) |