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.cpp
- Revision:
- 2:db59f45ad3d3
- Parent:
- 0:cd5404401c2f
--- a/aws-iot/src/aws_iot_shadow.cpp Wed Apr 12 14:09:46 2017 +0200 +++ b/aws-iot/src/aws_iot_shadow.cpp Fri Aug 04 14:06:06 2017 +0900 @@ -76,7 +76,7 @@ mqttInitParams.disconnectHandler = pParams->disconnectHandler; rc = aws_iot_mqtt_init(pClient, &mqttInitParams); - if(SUCCESS != rc) { + if(IOT_SUCCESS != rc) { FUNC_EXIT_RC(rc); } @@ -84,11 +84,11 @@ aws_iot_shadow_reset_last_received_version(); initDeltaTokens(); - FUNC_EXIT_RC(SUCCESS); + FUNC_EXIT_RC(IOT_SUCCESS); } IoT_Error_t aws_iot_shadow_connect(AWS_IoT_Client *pClient, ShadowConnectParameters_t *pParams) { - IoT_Error_t rc = SUCCESS; + IoT_Error_t rc = IOT_SUCCESS; char deleteAcceptedTopic[MAX_SHADOW_TOPIC_LENGTH_BYTES]; uint16_t deleteAcceptedTopicLen; IoT_Client_Connect_Params ConnectParams = iotClientConnectParamsDefault; @@ -113,7 +113,7 @@ rc = aws_iot_mqtt_connect(pClient, &ConnectParams); - if(SUCCESS == rc) { + if(IOT_SUCCESS == rc) { initializeRecords(pClient); }