How to connect to MQTT broker for AWS IoT and AWS OTA simultaneously?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to connect to MQTT broker for AWS IoT and AWS OTA simultaneously?

622 次查看
kackle123
Contributor IV

I have a single K64 device and want to use both the MCUXpresso's SDK demo for an AWS IoT connection AND the demo for AWS OTA in one firmware.  I think I can merge these to share a single, secure, AWS, TCP/socket connection.  But does each then need its own unique MQTT connection to the broker, or can they share the MQTT connection (one democonfigCLIENT_IDENTIFIER within FreeRTOS' coreMQTT), too?  It looks like both want to manage the connection themselves.  I was wondering whether anyone had any experience with this.

0 项奖励
4 回复数

582 次查看
kackle123
Contributor IV

I am successfully using MCUXpresso's SDK's aws_shadow_enet demo.  I am trying to add to it this code: Manage SDK Components / Middleware / AWS IoT / AWS common libraries / AWS IoT demo ota_mqtt.  They seemed to have started adding the capability that I mentioned to "AWS IoT demo ota_mqtt", accessible via a boolean flag, but their code is incomplete. 

0 项奖励

560 次查看
RaRo
NXP TechSupport
NXP TechSupport

Hello @kackle123,

Unfortunately, there is not much information about how to connect to MQTT broker for AWS IoT and AWS OTA simultaneously.

Nonetheless, the following information might be useful:

Even though there is not much information about the K64F + AWS IoT or OTA, you could look for iMXRT10xx and RT117x information:

Finally, here are some FreeRTOS information:

Warm regards, Raul.

0 项奖励

543 次查看
kackle123
Contributor IV

Thank you for your research.  They don't seem to be what I'm looking for, but might give me some ideas.  I will continue to hack at the code to see how to combine them. 

0 项奖励

586 次查看
RaRo
NXP TechSupport
NXP TechSupport

Hello @kackle123,

Could you please tell us which demos are you using? For example, which aws_example from the K64F SDK are you using? Which is the link to the demo for AWS OTA in one firmware?

There is not much information of the K64F AWS implementation. Nonetheless, here are some information that could be useful to look at:

Warm regards, Raul.

0 项奖励