Good morning
@Erel
The above solution doesn't seem to work.
Here is what I tried in order to cover all bases.
I ran my project before making any edits as I have changed some other bits last night so wanted to make sure my code was good - MQTT sent ok
I edited the file back to it's original state (setting to 128) and ran project to prove the issue- MQTT failed
I added the line above in the Main module head and ran project - MQTT failed
I edited the above line setting to 256 (you wrote 255) and ran project - MQTT failed
I commented out the line and edited the file again, setting to 256 - MQTT sent ok
This might seem a bit long winded but as I say I like to cover all bases and being an electrician it is drilled into us to 'Prove, test, Prove Again!'
I'm happy to try any other ideas