ESP07 MQTT ISR crash
Posted: Fri Jun 30, 2017 3:09 am
Hello, I want to do a MQTT client.publish(topic,msg); on my ESP07 in Arduino language inside an ISR.
When the publish is executing I got an Exception 9 and a stack-dump.
void ISR() // Interrupt-Service-Routine
{
client.publish("button", "1"); // Publish topic "button" with message "1"
}
When I test the publish line outside the ISR it works without any problem.
Also when I replace the client.plublish with something else like a Serial.print("hello."); there is no stack-dump.
Who knows a solution for this problem.
Regards, Wim
When the publish is executing I got an Exception 9 and a stack-dump.
void ISR() // Interrupt-Service-Routine
{
client.publish("button", "1"); // Publish topic "button" with message "1"
}
When I test the publish line outside the ISR it works without any problem.
Also when I replace the client.plublish with something else like a Serial.print("hello."); there is no stack-dump.
Who knows a solution for this problem.
Regards, Wim