mqtt: added more message types, added test for them.
This commit is contained in:
@@ -133,6 +133,26 @@ const char *AQH_MqttMsg_MsgTypeToString(uint8_t t)
|
||||
|
||||
|
||||
|
||||
uint8_t AQH_MqttMsg_GetMsgTypeAndFlags(const GWEN_MSG *msg)
|
||||
{
|
||||
uint32_t msgLen;
|
||||
|
||||
msgLen=GWEN_Msg_GetBytesInBuffer(msg);
|
||||
if (msgLen>0) {
|
||||
const uint8_t *msgPtr;
|
||||
|
||||
msgPtr=GWEN_Msg_GetConstBuffer(msg);
|
||||
return msgPtr[0];
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void _flagsToDb(uint8_t flags, GWEN_DB_NODE *dbDest, const char *varNameFlags, const char *varNameQos)
|
||||
{
|
||||
GWEN_DB_DeleteVar(dbDest, varNameFlags);
|
||||
|
||||
Reference in New Issue
Block a user