sMQTTBroker
Public Member Functions | Protected Attributes | List of all members
sMQTTTopic Class Reference
Inheritance diagram for sMQTTTopic:
Inheritance graph
[legend]

Public Member Functions

 sMQTTTopic (const char *name, char QoS=0)
 
 sMQTTTopic (const char *name, unsigned short nameLen, const char *payload, unsigned short payloadLen)
 
 sMQTTTopic (std::string &name, std::string &payload, char QoS=0)
 
 sMQTTTopic (sMQTTTopic *other)
 
void update (sMQTTTopic *other)
 
const char * Name ()
 toppic name
 
const char * Payload ()
 topic payload
 
unsigned char QoS ()
 topic qos
 
bool match (sMQTTTopic *other)
 
bool match (const std::string &other)
 
void subscribe (sMQTTClient *client)
 
bool unsubscribe (sMQTTClient *client)
 
const sMQTTClientList getSubscribeList ()
 

Protected Attributes

std::string _name
 
char * _payload
 
unsigned char qos
 
unsigned short _payloadLen
 
sMQTTClientList clients
 

Member Function Documentation

◆ match() [1/2]

bool sMQTTTopic::match ( const std::string &  other)

compare with other topic

Parameters
othertopic name

◆ match() [2/2]

bool sMQTTTopic::match ( sMQTTTopic other)

compare with other topic

Parameters
othertopic class

◆ subscribe()

void sMQTTTopic::subscribe ( sMQTTClient client)

subscribe topic

Parameters
client

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