embeddedx wrote on September 22, 2019:
I’m trying to have two clients with different ID connecting to the AWS broker with the same thing credentials in the MQTT demo.
The creation of the second connection failed with error
This is the code I use
status = _establishMqttConnection( awsIotMqttMode,
NULL,
pNetworkServerInfo,
pNetworkCredentialInfo,
pNetworkInterface,
&mqttConnection );
if( status == EXIT_SUCCESS )
{
IotLogInfo("Sucess 1 \r
");
status = _establishMqttConnection( awsIotMqttMode,
NULL,
pNetworkServerInfo,
pNetworkCredentialInfo,
pNetworkInterface,
&mqttConnection2 );
if( status == EXIT_SUCCESS )
{
IotLogInfo("Sucess 2 \r
");
}
else
{
IotLogInfo("Fail 2 \r
");
}
}
else
{
IotLogInfo("Fail 1 \r
");
}
Thanks