Skip to content

Commit

Permalink
MQTT: add roller shutter (and similar functions) support.
Browse files Browse the repository at this point in the history
Channel: add getters for roller shutter value.
  • Loading branch information
klew committed Oct 15, 2024
1 parent d04bd39 commit ae15853
Show file tree
Hide file tree
Showing 16 changed files with 530 additions and 204 deletions.
68 changes: 34 additions & 34 deletions extras/test/HvacTests/hvac_integration_schedule_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -209,7 +209,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -233,7 +233,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -294,7 +294,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -322,7 +322,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -354,7 +354,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -388,7 +388,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {
EXPECT_CALL(primaryOutput, setOutputValueCheck(1)).Times(1).InSequence(seq1);
EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -422,7 +422,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {
EXPECT_CALL(primaryOutput, setOutputValueCheck(0)).Times(1).InSequence(seq1);
EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -453,7 +453,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {
EXPECT_CALL(primaryOutput, setOutputValueCheck(1)).Times(1).InSequence(seq1);
EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -480,7 +480,7 @@ TEST_F(HvacIntegrationScheduleF, startupWithEmptyConfigHeating) {
EXPECT_CALL(primaryOutput, setOutputValueCheck(0)).Times(1).InSequence(seq1);
EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -604,7 +604,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1, seq2)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -639,7 +639,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1, seq2)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -700,7 +700,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -729,7 +729,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -756,7 +756,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -783,7 +783,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -810,7 +810,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -837,7 +837,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -875,7 +875,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -901,7 +901,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -926,7 +926,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -952,7 +952,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -989,7 +989,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -1014,7 +1014,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -1039,7 +1039,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -1064,7 +1064,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -1102,7 +1102,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -1127,7 +1127,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -1155,7 +1155,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -1171,7 +1171,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -1187,7 +1187,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -1225,7 +1225,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand All @@ -1250,7 +1250,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down Expand Up @@ -1281,7 +1281,7 @@ TEST_F(HvacIntegrationScheduleF, mixedCommandsCheck) {

EXPECT_CALL(proto, sendChannelValueChanged(0, _, 0, 0))
.InSequence(seq1)
.WillOnce([](uint8_t channelNumber, char *value, unsigned char offline,
.WillOnce([](uint8_t channelNumber, int8_t *value, unsigned char offline,
uint32_t validityTimeSec) {
auto hvacValue = reinterpret_cast<THVACValue *>(value);

Expand Down
Loading

0 comments on commit ae15853

Please sign in to comment.