Left here for archival purposes.

User avatar
By audumla
#24987 The MQTT client cannot connect to AMQ running with MQTT enabled. AMQ responds with

Code: Select allTransport Connection to: tcp://10.0.2.2:40948 failed: java.net.ProtocolException: Invalid CONNECT encoding


It appears that the MQTT client within nodemcu is not setting protocol correctly
User avatar
By churchill
#25115 Hello,

I had the same problem with mosquitto from Arduino IDE.
The problem was I needed a broker fully 3.1.1 compliant. You can see here a solution. For me, updating mosquitto from the last available version in the website was successful.

churchill