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.
MQTTX-S
1 Attachment
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
ok, there are 3 line of code in MQTT.js that cause this.
line 234
line 320
line 386
Just created a pr for this and added a screenshot using it as
MQTTX-S
without errors.1 Attachment