@@ -3,34 +3,33 @@ package api
3
3
import (
4
4
"github.com/enbility/eebus-go/api"
5
5
spineapi "github.com/enbility/spine-go/api"
6
- "github.com/enbility/spine-go/model"
7
6
)
8
7
9
8
type CaCDTInterface interface {
10
9
api.UseCaseInterface
11
10
12
11
// Scenario 1
13
12
14
- // Return the current setpoints data
13
+ // Return the setpoints.
15
14
//
16
15
// parameters:
17
16
// - entity: the entity to get the setpoints data from
18
17
//
19
18
// return values:
20
- // - setpoints: A map of the setpoints for supported modes
19
+ // - setpoints: A list of setpoints
21
20
//
22
21
// possible errors:
23
22
// - ErrDataNotAvailable if no such limit is (yet) available
24
23
// - and others
25
24
Setpoints (entity spineapi.EntityRemoteInterface ) ([]Setpoint , error )
26
25
27
- // Return the constraints for the setpoints
26
+ // Return the constraints for the setpoints.
28
27
//
29
28
// parameters:
30
29
// - entity: the entity to get the setpoints constraints from
31
30
//
32
31
// return values:
33
- // - setpointConstraints: A map of the constraints for supported modes
32
+ // - setpointConstraints: A list of setpoint constraints
34
33
//
35
34
// possible errors:
36
35
// - ErrDataNotAvailable if no such limit is (yet) available
@@ -42,6 +41,6 @@ type CaCDTInterface interface {
42
41
// parameters:
43
42
// - entity: the entity to write the setpoint to
44
43
// - mode: the mode to write the setpoint for
45
- // - degC : the temperature setpoint value to write
46
- WriteSetpoint (entity spineapi.EntityRemoteInterface , mode model. HvacOperationModeTypeType , degC float64 ) error
44
+ // - temperature : the temperature setpoint value to write
45
+ WriteSetpoint (entity spineapi.EntityRemoteInterface , mode HvacOperationModeType , temperature float64 ) error
47
46
}
0 commit comments