Skip to content

Commit 1b87e04

Browse files
committed
proto: Add method SetCoolingMode in CoolingService
1 parent ecc35ed commit 1b87e04

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Introduced new enumeration `braiins.bos.v1.DPSMode` with `DPS_MODE_NORMAL` and `DPS_MODE_BOOST` variants.
55
* Introduced new field `mode` in the `braiins.bos.v1.DPSConfiguration`, `braiins.bos.v1.SetDPSRequest`, `braiins.bos.v1.SetDPSResponse` message to get or set DPS mode.
66
* Introduced new field `mode` in the `braiins.bos.v1.DPSConstraints` message to get the default value for DPS mode.
7+
* Introduced new method `SetCoolingMode` in the `braiins.bos.v1.CoolingService`. User can now set cooling mode to `automatic` or `manual`. It gives user possibility to set specific temperature and fan settings for each mode.
78

89
## [1.3.0] - 2024-10-22
910
Version **1.3.0** introduces few small improvements.

proto/bos/v1/cooling.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,32 @@ message SetImmersionModeResponse {
137137
bool immersion_mode = 1;
138138
}
139139

140+
// Request to set cooling mode
141+
message SetCoolingModeRequest {
142+
// Save action
143+
braiins.bos.v1.SaveAction save_action = 1;
144+
// Cooling mode to set. If the cooling mode is changed, all fields that aren't relevant to the new mode are reset to default values.
145+
// If the cooling mode values are updated, the new values are applied to the current mode.
146+
oneof mode {
147+
CoolingAutoMode auto = 2;
148+
CoolingManualMode manual = 3;
149+
}
150+
}
151+
152+
// Response for set cooling mode action.
153+
message SetCoolingModeResponse {
154+
// The resulting cooling mode
155+
oneof mode {
156+
CoolingAutoMode auto = 1;
157+
CoolingManualMode manual = 2;
158+
}
159+
}
160+
140161
service CoolingService {
141162
// Method to get current temperature measurements and fans states
142163
rpc GetCoolingState(GetCoolingStateRequest) returns (GetCoolingStateResponse);
143164
// Method to set/toggle immersion mode
144165
rpc SetImmersionMode(SetImmersionModeRequest) returns (SetImmersionModeResponse);
166+
// Method to set cooling mode
167+
rpc SetCoolingMode(SetCoolingModeRequest) returns (SetCoolingModeResponse);
145168
}

0 commit comments

Comments
 (0)