Open THKDev opened 7 years ago
this commit fixes #64 OTA over MQTT
Remove pub.payload_stream()->stop(); Do NOT stop the client connection because the (WiFi) Client hold in class Publish is NOT ref counted. It is only a pointer. Closing it will count ref to 0 and close the TCP connection.
pub.payload_stream()->stop();
Client
Publish
this commit fixes #64 OTA over MQTT
Remove
pub.payload_stream()->stop();
Do NOT stop the client connection because the (WiFi)Client
hold in classPublish
is NOT ref counted. It is only a pointer. Closing it will count ref to 0 and close the TCP connection.