From 67eae856c4809ad77ce6ffe4662c4b887abd52b6 Mon Sep 17 00:00:00 2001 From: fei Date: Fri, 16 Jun 2017 13:47:47 +0800 Subject: [PATCH] Fix username and password are confused --- src/aws_iot_mqtt_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aws_iot_mqtt_client.c b/src/aws_iot_mqtt_client.c index 1786f76979..4109129fca 100644 --- a/src/aws_iot_mqtt_client.c +++ b/src/aws_iot_mqtt_client.c @@ -138,7 +138,7 @@ IoT_Error_t aws_iot_mqtt_set_connect_params(AWS_IoT_Client *pClient, IoT_Client_ pClient->clientData.options.clientIDLen = pNewConnectParams->clientIDLen; pClient->clientData.options.pUsername = pNewConnectParams->pUsername; pClient->clientData.options.usernameLen = pNewConnectParams->usernameLen; - pClient->clientData.options.pPassword = pNewConnectParams->pUsername; + pClient->clientData.options.pPassword = pNewConnectParams->pPassword; pClient->clientData.options.passwordLen = pNewConnectParams->passwordLen; pClient->clientData.options.will.pTopicName = pNewConnectParams->will.pTopicName; pClient->clientData.options.will.topicNameLen = pNewConnectParams->will.topicNameLen;