/* Serializes a puback packet into the supplied buffer.  */
int MQTTSerialize_puback(unsigned char *buf, int buflen, unsigned short packetid)
/* Serializes a puback packet into the supplied buffer.  */
int MQTTSerialize_puback(unsigned char *buf, int buflen, unsigned short packetid)
{
    return MQTTSerialize_ack(buf, buflen, PUBACK, 0, packetid);
}