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

#include <Puback.h>

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

Public Member Functions

 Puback ()
 
 Puback (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
 
uint8_t getType () const
 
uint8_t getFlags () 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
 

Detailed Description

Definition at line 34 of file Puback.h.

Constructor & Destructor Documentation

◆ Puback() [1/2]

iot::mqtt::packets::Puback::Puback ( )

Definition at line 31 of file Puback.cpp.

33 }
#define MQTT_PUBACK
Definition Puback.h:35

References Puback().

Referenced by Puback(), and Puback().

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

◆ Puback() [2/2]

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

Definition at line 35 of file Puback.cpp.

36 : Puback() {
38 }
iot::mqtt::types::UInt16 packetIdentifier
Definition Puback.h:46

References Puback().

Here is the call graph for this function:

Member Function Documentation

◆ getPacketIdentifier()

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

Definition at line 44 of file Puback.cpp.

44 {
45 return packetIdentifier;
46 }

◆ serializeVP()

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

Implements iot::mqtt::ControlPacket.

Definition at line 40 of file Puback.cpp.

40 {
42 }
virtual std::vector< char > serialize() const
Definition TypeBase.hpp:61

Member Data Documentation

◆ packetIdentifier

iot::mqtt::types::UInt16 iot::mqtt::packets::Puback::packetIdentifier
protected

Definition at line 46 of file Puback.h.


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