aqhome: fixed mqtt message handling

PUBLISH: the message itself is NOT preceeded by size
This commit is contained in:
Martin Preuss
2023-05-24 23:07:45 +02:00
parent 1751170940
commit f0917064af
5 changed files with 152 additions and 12 deletions

View File

@@ -61,6 +61,9 @@ AQHOME_API uint8_t AQH_MqttMsg_GetMsgTypeAndFlags(const GWEN_MSG *msg);
AQHOME_API void AQH_MqttMsg_AppendStringWithLen(GWEN_BUFFER *buf, const char *s);
AQHOME_API int AQH_MqttMsg_DumpString(const uint8_t *ptr, uint32_t len, GWEN_BUFFER *buf);
AQHOME_API int AQH_MqttMsg_SkipStringAt(const uint8_t *ptr, uint32_t len);
AQHOME_API char *AQH_MqttMsg_ExtractStringAt(const uint8_t *ptr, uint32_t len);
#endif