/* Writes an integer as 2 bytes to an output buffer.  */
void mqtt_write_int(unsigned char **pptr, int anInt)
/* Writes an integer as 2 bytes to an output buffer.  */
void mqtt_write_int(unsigned char **pptr, int anInt)
{
	**pptr = (unsigned char)(anInt / 256);
	(*pptr)++;
	**pptr = (unsigned char)(anInt % 256);
	(*pptr)++;
}