Skip to content

Commit 2567e5c

Browse files
tipfeihedeshianaws
authored andcommitted
MQTT: Fix username and password are confused
fixes #88
1 parent 0829b19 commit 2567e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aws_iot_mqtt_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ IoT_Error_t aws_iot_mqtt_set_connect_params(AWS_IoT_Client *pClient, IoT_Client_
138138
pClient->clientData.options.clientIDLen = pNewConnectParams->clientIDLen;
139139
pClient->clientData.options.pUsername = pNewConnectParams->pUsername;
140140
pClient->clientData.options.usernameLen = pNewConnectParams->usernameLen;
141-
pClient->clientData.options.pPassword = pNewConnectParams->pUsername;
141+
pClient->clientData.options.pPassword = pNewConnectParams->pPassword;
142142
pClient->clientData.options.passwordLen = pNewConnectParams->passwordLen;
143143
pClient->clientData.options.will.pTopicName = pNewConnectParams->will.pTopicName;
144144
pClient->clientData.options.will.topicNameLen = pNewConnectParams->will.topicNameLen;

0 commit comments

Comments
 (0)