Skip to content

Commit

Permalink
Fix for broken deleteActionHandler in shadow API
Browse files Browse the repository at this point in the history
Fixes #69
  • Loading branch information
vareddy authored and Gordon Wang committed Apr 20, 2018
1 parent 55af401 commit cbeb793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aws_iot_shadow.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const ShadowInitParameters_t ShadowInitParametersDefault = {(char *) AWS_IOT_MQT
const ShadowConnectParameters_t ShadowConnectParametersDefault = {(char *) AWS_IOT_MY_THING_NAME,
(char *) AWS_IOT_MQTT_CLIENT_ID, 0, NULL};

static char deleteAcceptedTopic[MAX_SHADOW_TOPIC_LENGTH_BYTES];

void aws_iot_shadow_reset_last_received_version(void) {
shadowJsonVersionNum = 0;
}
Expand Down Expand Up @@ -89,7 +91,6 @@ IoT_Error_t aws_iot_shadow_init(AWS_IoT_Client *pClient, ShadowInitParameters_t

IoT_Error_t aws_iot_shadow_connect(AWS_IoT_Client *pClient, ShadowConnectParameters_t *pParams) {
IoT_Error_t rc = SUCCESS;
char deleteAcceptedTopic[MAX_SHADOW_TOPIC_LENGTH_BYTES];
uint16_t deleteAcceptedTopicLen;
IoT_Client_Connect_Params ConnectParams = iotClientConnectParamsDefault;

Expand Down

0 comments on commit cbeb793

Please sign in to comment.