aqhome: improved "write" module.

- write window status as string translated from value
- reduced code duplication
This commit is contained in:
Martin Preuss
2023-05-13 00:15:07 +02:00
parent 6a22fb9956
commit 9f32f206b3
3 changed files with 17 additions and 21 deletions

View File

@@ -33,6 +33,7 @@ AQHOME_API int16_t AQH_Value2Msg_GetValueDenom(const GWEN_MSG *msg);
AQHOME_API double AQH_Value2Msg_GetValue(const GWEN_MSG *msg);
AQHOME_API const char *AQH_Value2Msg_GetValueAsWindowStateString(const GWEN_MSG *msg);
AQHOME_API const char *AQH_Value2Msg_GetValueTypeName(const GWEN_MSG *msg);
AQHOME_API void AQH_Value2Msg_DumpToBuffer(const GWEN_MSG *msg, GWEN_BUFFER *dbuf, const char *sText);