- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have completed the WICED WiFI Tutorial. https://www.cypress.com/training/wiced-wi-fi-101-video-tutorial-series
I am working on AWS application using the development kit CYW954907AEVAL1F. in Chapter 8 of the AWS tutorials, there are three versions for establishing connection with AWS Cloud. When I run the code MQTT, I am catching some error with initialization of MQTT.
I have checked my policies are consistent with following this post (AWS MQTT TCP receive error )
I am not sure what is error code 4, and I am also not sure how to debug this as the code was written for the dev kit, and I have only changed wifi access SSID/PC, and the endpoints, and Topic related information in AWS. My certificates and Thing are working as desired with other scripts, but the MQTT code provided on GitHub is providing this error.
Thanks for any guidance on this issue.
Jerome
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Yes, there is a typo in the source where WICED_MQTT_EVENT_TYPE_SUBSCRIBED is written as WICED_MQTT_EVENT_TYPE_SUBCRIBED.
Regarding "Error code 4", i too faced this issue.
At line 812 I changed
conninfo.peer_cn = (uint8_t*) "*.iot.us-east-1.amazonaws.com"
to
conninfo.peer_cn = (uint8_t*) "*.iot.ap-south-1.amazonaws.com"
and the MQTT connection went through. Try changing this line based on the region from which you are accessing AWS and the connection should go through.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jerome
the MQTT code provided on GitHub is providing this error
--> Could you provide the github link of the code for which you are facing this issue?
Also for chapter 8, could you try out the codes available at CypressAcademy_WW101_Files/Projects/ww101key/08 at master · cypresssemiconductorco/CypressAcademy_WW... and check if it works?
Thanks
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The original source was the github repository.
I have re-downloaded the source and make file and have reproduced this error (please check there is some typo in source actually "*_SUBCRIBED".
At any rate, the MQTT is still not working and I continue to get same error.
I should mention I am using out of box CYW954907AEVAL1F with "out of box" github source. I am able to connect to my WIFI but MQTT is not connecting. Any more suggestions or clarification around initializing MQTT or "Error Code 4".
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Yes, there is a typo in the source where WICED_MQTT_EVENT_TYPE_SUBSCRIBED is written as WICED_MQTT_EVENT_TYPE_SUBCRIBED.
Regarding "Error code 4", i too faced this issue.
At line 812 I changed
conninfo.peer_cn = (uint8_t*) "*.iot.us-east-1.amazonaws.com"
to
conninfo.peer_cn = (uint8_t*) "*.iot.ap-south-1.amazonaws.com"
and the MQTT connection went through. Try changing this line based on the region from which you are accessing AWS and the connection should go through.
Thanks