AnyCloud MQTT Client can't connect to aws

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Frank-Lin
Level 4
Level 4
5 solutions authored 50 sign-ins 10 questions asked

Hi,
I am testing AnyCloud MQTT-Client on CY8CKIT-062S2-43012.
I always got error "MQTT connection failed with error code 0x8060009." 
But the same setting of mqtt_client_config.h and  wifi_config.h on SDK v4-beta release can connect to aws cloud.

0 Likes
1 Solution

Hi, 
Afte update to ModusToolBox 2.3.0 (and 2.3.1 patch ), it can connect to aws iot core.

View solution in original post

0 Likes
3 Replies
Murali_R
Moderator
Moderator
Moderator
250 sign-ins 250 replies posted 100 solutions authored

@Frank-Lin The error code indicates that the server is refusing connection.

On what version is this failing?

Is it on the default MQTT-Client example at https://github.com/cypresssemiconductorco/mtb-example-anycloud-mqtt-client ? Or has there been any changes that have been done? If so, can you give out the steps done for me to replicate the issue?

0 Likes
lock attach
Attachments are accessible only for community members.

Yes, it is the default mqtt-client project without changing.
Following is my change to project,
  mqtt_client_config.h  ---->   MQTT_BROKER_ADDRESS,  CLIENT_CERTIFICATE,  CLIENT_PRIVATE_KEY, ROOT_CA_CERTIFICATE
  wifi_config.h  ---------------> WIFI_SSID,  WIFI_PASSWORD
I have test it at SDK
aws-iot-device-sdk-embedded-C "v4-beta release" and can work (my old project), but now the the project is using  SDK "202011.00" can't connect to aws iot core.

I noticed that "
AWS_IOT_MQTT_MODE" is disappear in  mqtt_client_config.h, is that the reason?

0 Likes

Hi, 
Afte update to ModusToolBox 2.3.0 (and 2.3.1 patch ), it can connect to aws iot core.

0 Likes