Using MQTT/AWS client in multiple tasks

anudocs
Posts: 6
Joined: Fri Dec 25, 2020 8:18 am

Using MQTT/AWS client in multiple tasks

Postby anudocs » Tue Jan 05, 2021 9:29 am

I see examples of creating MQTT/AWS client and then publishing and subscribing within the same task. Similar example is for AWS shadow update where creation of MQTT/AWS client and shadow update is done in same task.

I want to create MQTT/AWS client in one task and then calling pub_sub_task and shadow_update_task from that task. Is there any template for doing this? I tried but getting below error:

Code: Select all

I (5458) AWS Connect: Starting pub sub
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled

Who is online

Users browsing this forum: Baidu [Spider], jsmith56x, sterisa and 285 guests