Microchip® Advanced Software Framework

MQTTFormat.h File Reference
#include "StackTrace.h"
#include "MQTTPacket.h"

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[])
 

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 
)
int MQTTStringFormat_connack ( char *  strbuf,
int  strbuflen,
unsigned char  connack_rc,
unsigned char  sessionPresent 
)
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[] 
)