#include <mqtt_subscribe.hpp>
mqtt message object for the MQTT_SUBSCRIBE type.
在文件 mqtt_subscribe.hpp 第 10 行定义.
◆ mqtt_subscribe() [1/2]
acl::mqtt_subscribe::mqtt_subscribe |
( |
void |
| ) |
|
constructor for creating MQTT_SUBSCRIBE mqtt message object.
- 参见
- mqtt_message
◆ mqtt_subscribe() [2/2]
acl::mqtt_subscribe::mqtt_subscribe |
( |
const mqtt_header & |
header | ) |
|
constructor for creating MQTT_SUBSCRIBE mqtt message object.
- 参见
- mqtt_message
◆ ~mqtt_subscribe()
acl::mqtt_subscribe::~mqtt_subscribe |
( |
void |
| ) |
|
◆ add_topic()
add one topic with its qos.
- 参数
-
topic | {const char*} the topic of message. |
qos | {mqtt_qos_t} the qos of the topic. |
- 返回
- {mqtt_subscribe&}
◆ finished()
bool acl::mqtt_subscribe::finished |
( |
void |
| ) |
const |
|
inlineprotectedvirtual |
◆ get_pkt_id()
unsigned short acl::mqtt_subscribe::get_pkt_id |
( |
void |
| ) |
const |
|
inline |
get the messsage's id.
- 返回
- {unsigned short} should return the value that > 0 && <= 65535.
在文件 mqtt_subscribe.hpp 第 45 行定义.
◆ get_qoses()
const std::vector<mqtt_qos_t>& acl::mqtt_subscribe::get_qoses |
( |
void |
| ) |
const |
|
inline |
get all the qoses of all topics.
- 返回
- {const std::vector<mqtt_qos_t>&}
在文件 mqtt_subscribe.hpp 第 61 行定义.
◆ get_topics()
const std::vector<string>& acl::mqtt_subscribe::get_topics |
( |
void |
| ) |
const |
|
inline |
◆ set_pkt_id()
set message's id
- 参数
-
id | {unsigned short} should > 0 && <= 65535 |
- 返回
- {mqtt_subscribe&}
◆ to_string()
bool acl::mqtt_subscribe::to_string |
( |
string & |
out | ) |
|
|
protectedvirtual |
◆ update()
int acl::mqtt_subscribe::update |
( |
const char * |
data, |
|
|
int |
dlen |
|
) |
| |
|
protectedvirtual |
◆ update_header_var()
int acl::mqtt_subscribe::update_header_var |
( |
const char * |
data, |
|
|
int |
dlen |
|
) |
| |
◆ update_topic_len()
int acl::mqtt_subscribe::update_topic_len |
( |
const char * |
data, |
|
|
int |
dlen |
|
) |
| |
◆ update_topic_qos()
int acl::mqtt_subscribe::update_topic_qos |
( |
const char * |
data, |
|
|
int |
dlen |
|
) |
| |
◆ update_topic_val()
int acl::mqtt_subscribe::update_topic_val |
( |
const char * |
data, |
|
|
int |
dlen |
|
) |
| |
该类的文档由以下文件生成: