You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • ok, there are 3 line of code in MQTT.js that cause this.

    line 234

    this.client.write(fromCharCode(TYPE.PINGRESP << 4) + "\x00");
    // change to 
    this.client.write(fromCharCode(TYPE.PINGRESP << 4,0));
    

    line 320

    this.client.write(fromCharCode(TYPE.DISCONNECT << 4) + "\x00");
    // change to
    this.client.write(fromCharCode(TYPE.DISCONNECT << 4, 0));
    

    line 386

    this.client.write(fromCharCode(TYPE.PINGREQ << 4) + "\x00");
    // change to 
    this.client.write(fromCharCode(TYPE.PINGREQ << 4,0));
    

    Just created a pr for this and added a screenshot using it as MQTTX-S without errors.


    1 Attachment

    • Bildschirmfoto 2024-04-20 um 06.25.05.jpg
About

Avatar for MaBe @MaBe started