As I tried to connect the NanoESP with my MQTT-Broker with password-authentication, I get a connection, but publish and subscribe don't work. This problem occurs because of a bug in "NanoESP_MQTT.cpp" on Line 71, where connectFlag wasn't shifted, when boolLastWill is 0. My solution was to add an else in Line 82 that looks like the following:
} else { connectFlag = connectFlag << 4; }
As I tried to connect the NanoESP with my MQTT-Broker with password-authentication, I get a connection, but publish and subscribe don't work. This problem occurs because of a bug in "NanoESP_MQTT.cpp" on Line 71, where connectFlag wasn't shifted, when boolLastWill is 0. My solution was to add an else in Line 82 that looks like the following:
} else { connectFlag = connectFlag << 4; }
Maybe this could be solved for the next release.