SNode.C
Loading...
Searching...
No Matches
iot::mqtt_fast::packets::Unsuback Class Reference

#include <Unsuback.h>

Inheritance diagram for iot::mqtt_fast::packets::Unsuback:
Collaboration diagram for iot::mqtt_fast::packets::Unsuback:

Public Member Functions

 Unsuback (uint16_t packetIdentifier)
 
 Unsuback (iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
 
uint16_t getPacketIdentifier () const
 
- Public Member Functions inherited from iot::mqtt_fast::ControlPacket
 ControlPacket (uint8_t type, uint8_t reserved=0)
 
 ControlPacket (iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
 
 ControlPacket (const ControlPacket &)=delete
 
 ControlPacket (ControlPacket &&)=delete
 
ControlPacketoperator= (const ControlPacket &)=delete
 
ControlPacketoperator= (ControlPacket &&)=delete
 
uint8_t getType () const
 
uint8_t getReserved () const
 
uint64_t getRemainingLength () const
 
std::vector< char > getPacket ()
 
bool isError () const
 

Private Attributes

uint16_t packetIdentifier
 

Additional Inherited Members

- Protected Member Functions inherited from iot::mqtt_fast::ControlPacket
std::vector< char > & getValue ()
 
uint8_t getInt8 ()
 
uint16_t getInt16 ()
 
uint32_t getInt32 ()
 
uint64_t getInt64 ()
 
uint32_t getIntV ()
 
std::string getString ()
 
std::string getStringRaw ()
 
std::list< uint8_t > getUint8ListRaw ()
 
void putInt8 (uint8_t value)
 
void putInt16 (uint16_t value)
 
void putInt32 (uint32_t value)
 
void putInt64 (uint64_t value)
 
void putIntV (uint32_t value)
 
void putString (const std::string &value)
 
void putStringRaw (const std::string &value)
 
void putUint8ListRaw (const std::list< uint8_t > &value)
 
bool isError ()
 
- Protected Attributes inherited from iot::mqtt_fast::ControlPacket
bool error = false
 

Detailed Description

Definition at line 39 of file Unsuback.h.

Constructor & Destructor Documentation

◆ Unsuback() [1/2]

iot::mqtt_fast::packets::Unsuback::Unsuback ( uint16_t packetIdentifier)
explicit

Definition at line 28 of file Unsuback.cpp.

References iot::mqtt_fast::ControlPacket::ControlPacket(), packetIdentifier, and iot::mqtt_fast::ControlPacket::putInt16().

Here is the call graph for this function:

◆ Unsuback() [2/2]

iot::mqtt_fast::packets::Unsuback::Unsuback ( iot::mqtt_fast::ControlPacketFactory & controlPacketFactory)
explicit

Definition at line 37 of file Unsuback.cpp.

38 : iot::mqtt_fast::ControlPacket(controlPacketFactory) {
39 // V-Header
41
42 // no Payload
43
44 error = isError();
45 }

References iot::mqtt_fast::ControlPacket::ControlPacket(), iot::mqtt_fast::ControlPacket::error, iot::mqtt_fast::ControlPacket::getInt16(), and packetIdentifier.

Here is the call graph for this function:

Member Function Documentation

◆ getPacketIdentifier()

uint16_t iot::mqtt_fast::packets::Unsuback::getPacketIdentifier ( ) const

Definition at line 47 of file Unsuback.cpp.

47 {
48 return packetIdentifier;
49 }

References packetIdentifier.

Member Data Documentation

◆ packetIdentifier

uint16_t iot::mqtt_fast::packets::Unsuback::packetIdentifier
private

Definition at line 47 of file Unsuback.h.

Referenced by getPacketIdentifier(), Unsuback(), and Unsuback().


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