By now we all know that there are some bugs in the MQTT module. These are what I found.
1.) If there is no internet connection all publish will return True and pub time out will not fire.
2.) If no internet mqtt tx buffer will keep increasing until running out of heap.
3.) If no internet mqtt:close() will not work.
Possible fixes:
All changes are in between
//---------------------SCW--------------------------------------------------
//-----------------------------------------------------------------------------
By now we all know that there are some bugs in the MQTT module. These are what I found.
1.) If there is no internet connection all publish will return True and pub time out will not fire. 2.) If no internet mqtt tx buffer will keep increasing until running out of heap. 3.) If no internet mqtt:close() will not work.
Possible fixes:
All changes are in between //---------------------SCW--------------------------------------------------
//-----------------------------------------------------------------------------
1.)
2.)
3.)
This new part will close client without informing the broker (use full if no internet)
Any professional advice…..?