/* Return the length of the MQTTstring - C string if there is one, otherwise the length delimited string  */
int mqtt_strlen(mqtt_string_t mqttstring)
/* Return the length of the MQTTstring - C string if there is one, otherwise the length delimited string  */
int mqtt_strlen(mqtt_string_t mqttstring)
{
	int rc = 0;
	if (mqttstring.cstring)
		rc = strlen(mqttstring.cstring);
	else
		rc = mqttstring.lenstring.len;
	return rc;
}