-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(protocol-next): initial support for additional heatpump protocol…
… E/E
- Loading branch information
Showing
64 changed files
with
5,066 additions
and
2,164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.pio | ||
include/config/CustomConfiguration.h | ||
include/config/CustomConfigurationProd.h | ||
.vscode |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace aquamqtt | ||
{ | ||
constexpr char VERSION[] = "v1.4.2"; | ||
constexpr char VERSION[] = "v1.5.0"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#ifndef AQUAMQTT_IENERGYMESSAGE_H | ||
#define AQUAMQTT_IENERGYMESSAGE_H | ||
|
||
#include "MessageConstants.h" | ||
|
||
namespace aquamqtt::message | ||
{ | ||
|
||
enum class ENERGY_ATTR_U16 | ||
{ | ||
POWER_HEATPUMP, | ||
POWER_HEATELEMENT, | ||
POWER_TOTAL, | ||
WATER_TOTAL | ||
}; | ||
|
||
enum class ENERGY_ATTR_U32 | ||
{ | ||
TOTAL_HEATPUMP_HOURS, | ||
TOTAL_HEATING_ELEMENT_HOURS, | ||
TOTAL_HOURS, | ||
}; | ||
|
||
enum class ENERGY_ATTR_U64 | ||
{ | ||
TOTAL_ENERGY, | ||
}; | ||
|
||
class IEnergyMessage | ||
{ | ||
public: | ||
virtual ~IEnergyMessage() = default; | ||
|
||
virtual uint8_t getLength() = 0; | ||
|
||
virtual uint64_t getAttr(ENERGY_ATTR_U64 attr) = 0; | ||
virtual uint32_t getAttr(ENERGY_ATTR_U32 attr) = 0; | ||
virtual uint16_t getAttr(ENERGY_ATTR_U16 attr) = 0; | ||
|
||
virtual bool hasAttr(ENERGY_ATTR_U64 attr) const = 0; | ||
virtual bool hasAttr(ENERGY_ATTR_U32 attr) const = 0; | ||
virtual bool hasAttr(ENERGY_ATTR_U16 attr) const = 0; | ||
|
||
virtual bool hasChanged(ENERGY_ATTR_U64 attr) const = 0; | ||
virtual bool hasChanged(ENERGY_ATTR_U32 attr) const = 0; | ||
virtual bool hasChanged(ENERGY_ATTR_U16 attr) const = 0; | ||
}; | ||
} // namespace aquamqtt::message | ||
|
||
#endif // AQUAMQTT_IENERGYMESSAGE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#ifndef AQUAMQTT_IERRORMESSAGE_H | ||
#define AQUAMQTT_IERRORMESSAGE_H | ||
|
||
#include "MessageConstants.h" | ||
|
||
namespace aquamqtt::message | ||
{ | ||
|
||
enum class ERROR_ATTR_U8 | ||
{ | ||
ERROR_REQUEST_ID, | ||
ERROR_ERROR_CODE, | ||
ERROR_TIME_MINUTES, | ||
ERROR_TIME_HOURS, | ||
ERROR_DATE_DAY, | ||
ERROR_DATE_MONTH, | ||
ERROR_DATE_YEAR | ||
}; | ||
|
||
enum class ERROR_ATTR_FLOAT | ||
{ | ||
ERROR_WATER_TEMPERATURE, | ||
ERROR_AIR_TEMPERATURE, | ||
ERROR_EVAPORATOR_UPPER_TEMPERATURE, | ||
ERROR_EVAPORATOR_LOWER_TEMPERATURE, | ||
ERROR_COMPRESSOR_OUTLET_TEMPERATURE, | ||
ERROR_FAN_SPEED_PWM, | ||
}; | ||
|
||
enum class ERROR_ATTR_U16 | ||
{ | ||
ERROR_TOTAL_HEATPUMP_HOURS, | ||
ERROR_TOTAL_HEATING_ELEMENT_HOURS, | ||
}; | ||
|
||
class IErrorMessage | ||
{ | ||
public: | ||
virtual ~IErrorMessage() = default; | ||
|
||
virtual uint8_t getLength() = 0; | ||
|
||
virtual bool isEmpty() = 0; | ||
|
||
virtual uint8_t getAttr(ERROR_ATTR_U8 attr) = 0; | ||
virtual uint16_t getAttr(ERROR_ATTR_U16 attr) = 0; | ||
virtual float getAttr(ERROR_ATTR_FLOAT attr) = 0; | ||
|
||
virtual bool hasAttr(ERROR_ATTR_U8 attr) const = 0; | ||
virtual bool hasAttr(ERROR_ATTR_U16 attr) const = 0; | ||
virtual bool hasAttr(ERROR_ATTR_FLOAT attr) const = 0; | ||
}; | ||
} // namespace aquamqtt::message | ||
|
||
#endif // AQUAMQTT_IERRORMESSAGE_H |
Oops, something went wrong.