Open raulgotor opened 1 year ago
Hi, the coreMQTT-Agent library is designed to solve the problem that you are describing, and is available in esp-aws-iot
.
Please read my comment here on #134 for more details and example usage.
This made my day, thanks!
Hello, I was running through the
mqtt/tls_mutual_auth
andota_mqtt
examples. I'd like to have an application with an MQTT client that is doing the business logic, and at the same time, the OTA agent running on the background (preferably sharing the same context), that would be triggered once a new job is available.I started to modify the OTA example, and added some additional MQTT subscriptions and publishes here and there.
For instance, I put some publishing function here, specifically but then I get errors such as:
On the other hand, having a subscription on that line (guarded for just being executed once) will go ok, but publishing to that topic from AWS MQTT test client at the console won't trigger the callback.
Could you provide some high level implementation guidelines in order to successfully use MQTT once the OTA agent is running in this example?