AnyCloud_OTA_Using_MQTT using AWS IoT MQTT

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

cross mob
SySa_4665481
Employee
Employee
5 sign-ins Welcome! 10 replies posted

Hi,

I saw in the ota_app_config.h of this project that there is an option AWS_IOT_MQTT_MODE.

May I know if OTA via AWS IoT MQTT is already supported with this project?

And what would be the steps/changes required to test this out?

Best Regards,

Syafii

0 Likes
1 Solution
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

You can use the AnyCloud_OTA_Using_MQTT example to establish connection with AWS IOT for OTA update.

You need to do the following changes in ota_app_config.h file:

--> Change the MQTT Broker Endpoint to your AWS IOT Endpoint. (#define MQTT_BROKER_URL)

--> Change the MQTT Port to secure MQTT port 8883. (#define MQTT_SERVER_PORT)

--> Enable TLS (#define ENABLE_TLS)

--> Set the parameter AWS_IOT_MQTT_MODE = 1 (#define AWS_IOT_MQTT_MODE)

--> Provide the Root CA certificate, Client Certificate and Private Key that will be generated in AWS IOT cloud.

--> Change the WiFi SSID, WiFi Password, OTA_MQTT_ID and the MQTT topics accordingly.

Thanks

View solution in original post

1 Reply
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

You can use the AnyCloud_OTA_Using_MQTT example to establish connection with AWS IOT for OTA update.

You need to do the following changes in ota_app_config.h file:

--> Change the MQTT Broker Endpoint to your AWS IOT Endpoint. (#define MQTT_BROKER_URL)

--> Change the MQTT Port to secure MQTT port 8883. (#define MQTT_SERVER_PORT)

--> Enable TLS (#define ENABLE_TLS)

--> Set the parameter AWS_IOT_MQTT_MODE = 1 (#define AWS_IOT_MQTT_MODE)

--> Provide the Root CA certificate, Client Certificate and Private Key that will be generated in AWS IOT cloud.

--> Change the WiFi SSID, WiFi Password, OTA_MQTT_ID and the MQTT topics accordingly.

Thanks