Functions | |
char * | MQTTFormat_toClientString (char *strbuf, int strbuflen, unsigned char *buf, int buflen) |
char * | MQTTFormat_toServerString (char *strbuf, int strbuflen, unsigned char *buf, int buflen) |
const char * | MQTTPacket_getName (unsigned short packetid) |
int | MQTTStringFormat_ack (char *strbuf, int strbuflen, unsigned char packettype, unsigned char dup, unsigned short packetid) |
int | MQTTStringFormat_connack (char *strbuf, int strbuflen, unsigned char connack_rc, unsigned char sessionPresent) |
int | MQTTStringFormat_connect (char *strbuf, int strbuflen, MQTTPacket_connectData *data) |
int | MQTTStringFormat_publish (char *strbuf, int strbuflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid, MQTTString topicName, unsigned char *payload, int payloadlen) |
int | MQTTStringFormat_suback (char *strbuf, int strbuflen, unsigned short packetid, int count, int *grantedQoSs) |
int | MQTTStringFormat_subscribe (char *strbuf, int strbuflen, unsigned char dup, unsigned short packetid, int count, MQTTString topicFilters[], int requestedQoSs[]) |
int | MQTTStringFormat_unsubscribe (char *strbuf, int strbuflen, unsigned char dup, unsigned short packetid, int count, MQTTString topicFilters[]) |
Variables | |
const char * | MQTTPacket_names [] |
char* MQTTFormat_toClientString | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned char * | buf, | ||
int | buflen | ||
) |
References MQTTHeader::bits, MQTTHeader::byte, CONNACK, count, DISCONNECT, header, MQTTDeserialize_ack(), MQTTDeserialize_connack(), MQTTDeserialize_publish(), MQTTDeserialize_suback(), MQTTDeserialize_unsuback(), MQTTPacket_decodeBuf(), MQTTPacket_names, MQTTString_initializer, MQTTStringFormat_ack(), MQTTStringFormat_connack(), MQTTStringFormat_publish(), MQTTStringFormat_suback(), PINGREQ, PINGRESP, PUBACK, PUBCOMP, PUBLISH, PUBREC, PUBREL, SUBACK, MQTTHeader::type, and UNSUBACK.
char* MQTTFormat_toServerString | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned char * | buf, | ||
int | buflen | ||
) |
References MQTTHeader::bits, MQTTHeader::byte, CONNECT, count, data, DISCONNECT, header, MQTTDeserialize_ack(), MQTTDeserialize_connect(), MQTTDeserialize_publish(), MQTTDeserialize_subscribe(), MQTTDeserialize_unsubscribe(), MQTTPacket_decodeBuf(), MQTTPacket_names, MQTTString_initializer, MQTTStringFormat_ack(), MQTTStringFormat_connect(), MQTTStringFormat_publish(), MQTTStringFormat_subscribe(), MQTTStringFormat_unsubscribe(), PINGREQ, PINGRESP, PUBACK, PUBCOMP, PUBLISH, PUBREC, PUBREL, SUBSCRIBE, MQTTHeader::type, and UNSUBSCRIBE.
const char* MQTTPacket_getName | ( | unsigned short | packetid | ) |
References MQTTPacket_names.
int MQTTStringFormat_ack | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned char | packettype, | ||
unsigned char | dup, | ||
unsigned short | packetid | ||
) |
References MQTTPacket_names.
Referenced by MQTTFormat_toClientString(), and MQTTFormat_toServerString().
int MQTTStringFormat_connack | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned char | connack_rc, | ||
unsigned char | sessionPresent | ||
) |
Referenced by MQTTFormat_toClientString().
int MQTTStringFormat_connect | ( | char * | strbuf, |
int | strbuflen, | ||
MQTTPacket_connectData * | data | ||
) |
References MQTTPacket_connectData::cleansession, MQTTPacket_connectData::clientID, MQTTLenString::data, MQTTPacket_connectData::keepAliveInterval, MQTTLenString::len, MQTTString::lenstring, MQTTPacket_willOptions::message, MQTTPacket_connectData::MQTTVersion, MQTTPacket_connectData::password, MQTTPacket_willOptions::qos, MQTTPacket_willOptions::retained, MQTTPacket_willOptions::topicName, MQTTPacket_connectData::username, MQTTPacket_connectData::will, and MQTTPacket_connectData::willFlag.
Referenced by MQTTFormat_toServerString().
int MQTTStringFormat_publish | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned char | dup, | ||
int | qos, | ||
unsigned char | retained, | ||
unsigned short | packetid, | ||
MQTTString | topicName, | ||
unsigned char * | payload, | ||
int | payloadlen | ||
) |
References MQTTLenString::data, MQTTLenString::len, and MQTTString::lenstring.
Referenced by MQTTFormat_toClientString(), and MQTTFormat_toServerString().
int MQTTStringFormat_suback | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned short | packetid, | ||
int | count, | ||
int * | grantedQoSs | ||
) |
Referenced by MQTTFormat_toClientString().
int MQTTStringFormat_subscribe | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned char | dup, | ||
unsigned short | packetid, | ||
int | count, | ||
MQTTString | topicFilters[], | ||
int | requestedQoSs[] | ||
) |
References MQTTLenString::data, and MQTTString::lenstring.
Referenced by MQTTFormat_toServerString().
int MQTTStringFormat_unsubscribe | ( | char * | strbuf, |
int | strbuflen, | ||
unsigned char | dup, | ||
unsigned short | packetid, | ||
int | count, | ||
MQTTString | topicFilters[] | ||
) |
References MQTTLenString::data, and MQTTString::lenstring.
Referenced by MQTTFormat_toServerString().
const char* MQTTPacket_names[] |
Referenced by MQTTFormat_toClientString(), MQTTFormat_toServerString(), MQTTPacket_getName(), and MQTTStringFormat_ack().