Closed
Description
Originally reported by: Abílio Costa (Bitbucket: amfcosta, GitHub: Unknown)
The MQTT will message is not correct. It seems to be reading another memory part.
After looking at the code, I think the issue is here (haven't tested yet): https://bitbucket.org/xoseperez/espurna/src/e327a219a81af889d81701e94f41eb78ec5db426/code/espurna/mqtt.ino?at=master&fileviewer=file-view-default#mqtt.ino-251
On line 251, the will char* is being freed, but it is probably stored by the mqtt lib when mqtt.setWill(...) is called.