26 lines
598 B
Go
26 lines
598 B
Go
|
package updater
|
||
|
|
||
|
const (
|
||
|
eventGetTestResults = "get test results"
|
||
|
eventTestResults = "test results"
|
||
|
)
|
||
|
|
||
|
// TestResults are the ReachRS module's test results
|
||
|
//
|
||
|
type TestResults struct {
|
||
|
Device string `json:"device"`
|
||
|
Lora bool `json:"lora"`
|
||
|
MPU bool `json:"mpu"`
|
||
|
STC bool `json:"stc"`
|
||
|
UBlox bool `json:"u-blox"`
|
||
|
}
|
||
|
|
||
|
// TestResults returns the ReachRS module tests results
|
||
|
func (c *Client) TestResults() (*TestResults, error) {
|
||
|
res := &TestResults{}
|
||
|
if err := c.ReqResp(eventGetTestResults, nil, eventTestResults, res); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return res, nil
|
||
|
}
|