iotsharp/iotsharp_rt_thread/applications/main.c
static void mq_publish(const char *send_str)
{
    MQTTMessage message;
    const char *msg_str = send_str;
    const char *topic =  pub_topic;
    message.qos = QOS1;
    message.retained = 0;
    message.payload = (void *)msg_str;
    message.payloadlen = strlen(message.payload);
		rt_kprintf("topic:%s message%s",send_str);
    MQTTPublish(&client, topic, &message);

    return;
}
/**
 * This function publish message to specific mqtt topic.
 *
 * @param send_str publish message
 *
 * @return none
 */
This function publish message to specific mqtt topic.

@param send_str publish message

@return none
This function publish message to specific mqtt topic . @param send_str publish message @return none
static void mq_publish(const char *send_str)
{
    MQTTMessage message;
    const char *msg_str = send_str;
    const char *topic =  pub_topic;
    message.qos = QOS1;
    message.retained = 0;
    message.payload = (void *)msg_str;
    message.payloadlen = strlen(message.payload);
		rt_kprintf("topic:%s message%s",send_str);
    MQTTPublish(&client, topic, &message);
    return;
}
static void mq_publish ( const char * send_str ) { MQTTMessage message ; const char * msg_str = send_str ; const char * topic = pub_topic ; message . qos = QOS1 ; message . retained = 0 ; message . payload = ( void * ) msg_str ; message . payloadlen = strlen ( message . payload ) ; rt_kprintf ( " " , send_str ) ; MQTTPublish ( & client , topic , & message ) ; return ; }
This function publish message to specific mqtt topic.
This function publish message to specific mqtt topic .