SNode.C
Loading...
Searching...
No Matches
iot::mqtt::packets::Pubrel Class Reference

#include <Pubrel.h>

Inheritance diagram for iot::mqtt::packets::Pubrel:
Collaboration diagram for iot::mqtt::packets::Pubrel:

Public Member Functions

 Pubrel ()
 Pubrel (uint16_t packetIdentifier)
uint16_t getPacketIdentifier () const
Public Member Functions inherited from iot::mqtt::ControlPacket
 ControlPacket (uint8_t type, const std::string &name)
 ControlPacket (const ControlPacket &)=default
 ControlPacket (ControlPacket &&)=default
virtual ~ControlPacket ()
ControlPacketoperator= (const ControlPacket &)=default
ControlPacketoperator= (ControlPacket &&)=default
std::vector< char > serialize () const
const std::string & getName () const

Protected Attributes

iot::mqtt::types::UInt16 packetIdentifier
Protected Attributes inherited from iot::mqtt::ControlPacket
uint8_t flags = 0

Private Member Functions

std::vector< char > serializeVP () const override

Additional Inherited Members

Protected Member Functions inherited from iot::mqtt::ControlPacket
uint8_t getType () const
uint8_t getFlags () const

Detailed Description

Definition at line 56 of file Pubrel.h.

Constructor & Destructor Documentation

◆ Pubrel() [1/2]

iot::mqtt::packets::Pubrel::Pubrel ( )

Definition at line 53 of file Pubrel.cpp.

54 : iot::mqtt::ControlPacket(MQTT_PUBREL, "PUBREL") {
55 }
#define MQTT_PUBREL
Definition Pubrel.h:57

References iot::mqtt::ControlPacket::ControlPacket().

Referenced by Pubrel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Pubrel() [2/2]

iot::mqtt::packets::Pubrel::Pubrel ( uint16_t packetIdentifier)
explicit

Definition at line 57 of file Pubrel.cpp.

58 : Pubrel() {
60 }
iot::mqtt::types::UInt16 packetIdentifier
Definition Pubrel.h:68

References iot::mqtt::types::UInt16::operator=(), packetIdentifier, and Pubrel().

Referenced by iot::mqtt::Mqtt::initSession(), and iot::mqtt::Mqtt::sendPubrel().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ getPacketIdentifier()

uint16_t iot::mqtt::packets::Pubrel::getPacketIdentifier ( ) const

Definition at line 66 of file Pubrel.cpp.

66 {
67 return packetIdentifier;
68 }

References packetIdentifier.

Referenced by iot::mqtt::Mqtt::_onPubrel().

Here is the caller graph for this function:

◆ serializeVP()

std::vector< char > iot::mqtt::packets::Pubrel::serializeVP ( ) const
overrideprivatevirtual

Implements iot::mqtt::ControlPacket.

Definition at line 62 of file Pubrel.cpp.

62 {
63 return std::vector<char>(packetIdentifier.serialize());
64 }

References packetIdentifier, and iot::mqtt::types::TypeBase< ValueTypeT >::serialize().

Here is the call graph for this function:

Member Data Documentation

◆ packetIdentifier


The documentation for this class was generated from the following files: