Closed twlawrenceko closed 2 years ago
@twlawrenceko , can you also share the error log?
Solved by a further investigation
@twlawrenceko can you tell us how you fix this?
@twlawrenceko can you tell us how you fix this?
Are you getting the same error? It turns out the code that I was previously using wasn’t well defined, which results in MQTT illegal instruction error
Hello,
As I am trying to implement MQTT inside the HomeKit thread, I got illegal instruction panic error when trying to initialize MQTT.
#include <mqtt_client.h>
has been added at the top of the file.Lightbulb example is the one that I am getting the error, but using smart_outlet will not.
mqtt_app_init()
has been put after the below linesThanks