PubSubClient
MQTT client library for Arduino
|
namespace for classes representing MQTT messages More...
Classes | |
class | Connect |
Message sent when connecting to a broker. More... | |
class | ConnectAck |
Response to Connect. More... | |
class | Disconnect |
Disconnect from the broker. More... | |
class | Message |
Abstract base class. More... | |
class | Ping |
Ping the broker. More... | |
class | PingResp |
Response to Ping. More... | |
class | Publish |
Publish a payload to a topic. More... | |
class | PublishAck |
Response to Publish when qos == 1. More... | |
class | PublishComp |
Response to PublishRel. More... | |
class | PublishRec |
First response to Publish when qos == 2. More... | |
class | PublishRel |
Response to PublishRec. More... | |
class | Subscribe |
Subscribe to one or more topics. More... | |
class | SubscribeAck |
Response to Subscribe. More... | |
class | Unsubscribe |
Unsubscribe from one or more topics. More... | |
class | UnsubscribeAck |
Response to Unsubscribe. More... | |
Typedefs | |
typedef bool(* | payload_callback_t) (Client &) |
Enumerations | |
enum | message_type { None, CONNECT, CONNACK, PUBLISH, PUBACK, PUBREC, PUBREL, PUBCOMP, SUBSCRIBE, SUBACK, UNSUBSCRIBE, UNSUBACK, PINGREQ, PINGRESP, DISCONNECT, Reserved } |
Functions | |
void | write (uint8_t *buf, uint32_t &bufpos, uint16_t data) |
void | write (uint8_t *buf, uint32_t &bufpos, uint8_t *data, uint32_t dlen) |
void | write (uint8_t *buf, uint32_t &bufpos, String str) |
template<typename T > | |
T | read (uint8_t *buf, uint32_t &pos) |
Template function to read from a buffer. | |
template<> | |
uint8_t | read< uint8_t > (uint8_t *buf, uint32_t &pos) |
template<> | |
uint16_t | read< uint16_t > (uint8_t *buf, uint32_t &pos) |
template<> | |
String | read< String > (uint8_t *buf, uint32_t &pos) |
template<typename T > | |
T | read (Client &client) |
Template function to read from a Client object. | |
template<> | |
uint8_t | read< uint8_t > (Client &client) |
template<> | |
uint16_t | read< uint16_t > (Client &client) |
template<> | |
String | read< String > (Client &client) |
Message * | readPacket (Client &client) |
Parser. More... | |
Publish | Publish_P (String topic, PGM_P payload, uint32_t length) |
A function made to look like a constructor, reading the payload from flash. | |
namespace for classes representing MQTT messages
Message * MQTT::readPacket | ( | Client & | client | ) |
Parser.
remember to free the object once you're finished with it