This repository has been archived on 2024-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
orion/emlid/reachview/configuration.go

16 lines
465 B
Go
Raw Normal View History

package reachview
2018-09-20 17:28:18 +02:00
const (
eventGetConfiguration = "get configuration"
eventCurrentConfiguration = "current configuration"
)
// Configuration fetches and return the current configuration of the ReachRS module
func (r *Client) Configuration() (*Configuration, error) {
2018-09-20 17:28:18 +02:00
configuration := &Configuration{}
if err := r.ReqResp(eventGetConfiguration, nil, eventCurrentConfiguration, configuration); err != nil {
2018-09-20 17:28:18 +02:00
return nil, err
}
return configuration, nil
}