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