Commit 9e29bb2a6a91401744052ac7fcbe5707a9ded091

Authored by Wiebe Cazemier
1 parent 4bfae767

Dummy property handling in handlePublish

Showing 1 changed file with 7 additions and 0 deletions
mqttpacket.cpp
@@ -837,7 +837,11 @@ void MqttPacket::handlePublish() @@ -837,7 +837,11 @@ void MqttPacket::handlePublish()
837 break; 837 break;
838 } 838 }
839 case Mqtt5Properties::CorrelationData: 839 case Mqtt5Properties::CorrelationData:
  840 + {
  841 + const uint16_t len = readTwoBytesToUInt16();
  842 + readBytes(len);
840 break; 843 break;
  844 + }
841 case Mqtt5Properties::UserProperty: 845 case Mqtt5Properties::UserProperty:
842 { 846 {
843 const uint16_t lenKey = readTwoBytesToUInt16(); 847 const uint16_t lenKey = readTwoBytesToUInt16();
@@ -848,7 +852,10 @@ void MqttPacket::handlePublish() @@ -848,7 +852,10 @@ void MqttPacket::handlePublish()
848 break; 852 break;
849 } 853 }
850 case Mqtt5Properties::SubscriptionIdentifier: 854 case Mqtt5Properties::SubscriptionIdentifier:
  855 + {
  856 + decodeVariableByteIntAtPos();
851 break; 857 break;
  858 + }
852 case Mqtt5Properties::ContentType: 859 case Mqtt5Properties::ContentType:
853 { 860 {
854 const uint16_t len = readTwoBytesToUInt16(); 861 const uint16_t len = readTwoBytesToUInt16();