thincloud.h
IoT_Error_t subscribe_to_command_request(AWS_IoT_Client *client, const char *deviceId, pApplicationHandler_t handler, void *subscribeData)
{
    IoT_Error_t rc = command_request_topic(COMMAND_TOPIC_BUFFER, deviceId);

    if (rc != SUCCESS)
    {
        FUNC_EXIT_RC(rc);
    }

    return aws_iot_mqtt_subscribe(client, COMMAND_TOPIC_BUFFER, strlen(COMMAND_TOPIC_BUFFER), QOS0, handler, subscribeData);
}
/**
 * @brief Subscribe to command requests
 * 
 * @param[in]  client          AWS IoT MQTT Client instance.
 * @param[in]  deviceId        Device's ID.
 * @param[in]  handler         Subscription response handler.
 * @param[in]  subscriberData  Data blob to be passed to the subscription handler on invoke.
 * 
 * @return Zero on success, negative value otherwise 
 */
@brief Subscribe to command requests

@param[in]  client          AWS IoT MQTT Client instance.
@param[in]  deviceId        Device's ID.
@param[in]  handler         Subscription response handler.
@param[in]  subscriberData  Data blob to be passed to the subscription handler on invoke.

@return Zero on success, negative value otherwise
@brief Subscribe to command requests @param [ in ] client AWS IoT MQTT Client instance . @param [ in ] deviceId Device ' s ID . @param [ in ] handler Subscription response handler . @param [ in ] subscriberData Data blob to be passed to the subscription handler on invoke . @return Zero on success negative value otherwise
IoT_Error_t subscribe_to_command_request(AWS_IoT_Client *client, const char *deviceId, pApplicationHandler_t handler, void *subscribeData)
{
    IoT_Error_t rc = command_request_topic(COMMAND_TOPIC_BUFFER, deviceId);
    if (rc != SUCCESS)
    {
        FUNC_EXIT_RC(rc);
    }
    return aws_iot_mqtt_subscribe(client, COMMAND_TOPIC_BUFFER, strlen(COMMAND_TOPIC_BUFFER), QOS0, handler, subscribeData);
}
IoT_Error_t subscribe_to_command_request ( AWS_IoT_Client * client , const char * deviceId , pApplicationHandler_t handler , void * subscribeData ) { IoT_Error_t rc = command_request_topic ( COMMAND_TOPIC_BUFFER , deviceId ) ; if ( rc != SUCCESS ) { FUNC_EXIT_RC ( rc ) ; } return aws_iot_mqtt_subscribe ( client , COMMAND_TOPIC_BUFFER , strlen ( COMMAND_TOPIC_BUFFER ) , QOS0 , handler , subscribeData ) ; }
@brief Subscribe to command requests
@brief Subscribe to command requests