46 mqtt_publish& set_payload(
unsigned len,
const char* data = NULL);
53 return topic_.c_str();
82 bool to_string(
string& out);
85 int update(
const char* data,
int dlen);
96 int update_header_var(
const char* data,
int dlen);
97 int update_topic_len(
const char* data,
int dlen);
98 int update_topic_val(
const char* data,
int dlen);
99 int update_pktid(
const char* data,
int dlen);
100 int update_payload(
const char* data,
int dlen);
110 unsigned short pkt_id_;
111 unsigned payload_len_;
const char * get_topic(void) const
const string & get_payload(void) const
unsigned short get_pkt_id(void) const
bool finished(void) const
unsigned get_payload_len(void) const