/* Serializes a disconnect packet into the supplied buffer, ready for writing to a socket  */
int mqtt_serialize_disconnect(unsigned char *buf, int buflen)
/* Serializes a disconnect packet into the supplied buffer, ready for writing to a socket  */
int mqtt_serialize_disconnect(unsigned char *buf, int buflen)
{
	return mqtt_serialize_zero(buf, buflen, MQTTPACKET_DISCONNECT);
}