Jeon byungchul
/
aws-iot-example
this is fork and i will modify for STM32
Fork of AWS-test by
Diff: aws-iot/src/aws_iot_shadow_actions.cpp
- Revision:
- 2:db59f45ad3d3
- Parent:
- 0:cd5404401c2f
--- a/aws-iot/src/aws_iot_shadow_actions.cpp Wed Apr 12 14:09:46 2017 +0200 +++ b/aws-iot/src/aws_iot_shadow_actions.cpp Fri Aug 04 14:06:06 2017 +0900 @@ -32,7 +32,7 @@ IoT_Error_t aws_iot_shadow_internal_action(const char *pThingName, ShadowActions_t action, const char *pJsonDocumentToBeSent, fpActionCallback_t callback, void *pCallbackContext, uint32_t timeout_seconds, bool isSticky) { - IoT_Error_t ret_val = SUCCESS; + IoT_Error_t ret_val = IOT_SUCCESS; bool isClientTokenPresent = false; bool isAckWaitListFree = false; uint8_t indexAckWaitList; @@ -59,15 +59,15 @@ } } else { - ret_val = FAILURE; + ret_val = IOT_FAILURE; } } - if(SUCCESS == ret_val) { + if(IOT_SUCCESS == ret_val) { ret_val = publishToShadowAction(pThingName, action, pJsonDocumentToBeSent); } - if(isClientTokenPresent && (NULL != callback) && (SUCCESS == ret_val) && isAckWaitListFree) { + if(isClientTokenPresent && (NULL != callback) && (IOT_SUCCESS == ret_val) && isAckWaitListFree) { addToAckWaitList(indexAckWaitList, pThingName, action, extractedClientToken, callback, pCallbackContext, timeout_seconds); }