switching from JSON to MsgPack in a backwards compatible manner with Paho MQTT (JavaScript)

picockpit.com makes heavy use of MQTT. For the upcoming version 2.0 I have decided to switch it to MsgPack.Why MsgPack?MsgPack (actually called MessagePack – packages tend to use MsgPack) is a binary format, aimed at compatibility with JSON, but decreasing file size (which is good for saving bandwidth & server resources).Another advantage: MessagePack allows you [...]

By | Juli 21st, 2020|JavaScript, MQTT|Kommentare deaktiviert für switching from JSON to MsgPack in a backwards compatible manner with Paho MQTT (JavaScript)

Eclipse Paho MQTT JavaScript Documentation

Unfortunately the official Eclipse page which you  can easily find using Google does NOT link to the documentation proper (at least not as far as I can see it). The link to the documentation itself is this:https://www.eclipse.org/paho/files/jsdoc/Paho.MQTT.Client.htmlHappy coding.

By | März 11th, 2020|Development, MQTT|Kommentare deaktiviert für Eclipse Paho MQTT JavaScript Documentation

Paho MQTT Client (Javascript), Envoy, VerneMQ: debugging disconnects

After deploying picockpit to my server, a bug was observed: the web frontend would disconnect in very regular intervals. This had not been present on the local development environment. Users of picockpit reported the same bug. I have debugged it today, and applied a hotfix. It turns out it was a timing issue. TL;DR how [...]

By | September 8th, 2019|MQTT, PiCockpit, VerneMQ|Kommentare deaktiviert für Paho MQTT Client (Javascript), Envoy, VerneMQ: debugging disconnects

Maximimum length of credentials (username, password, clientid) in MQTT v3.1.1

The CONNECT packetThe MQTT CONNECT Control packet always contains a payload. It is the first packet, which the client must send to the server after the connection is established.It can only be sent once by the client, if a second CONNECT packet is sent, the server (broker) must process it as a protocol violation and [...]

By | Juni 9th, 2019|MQTT, VerneMQ|Kommentare deaktiviert für Maximimum length of credentials (username, password, clientid) in MQTT v3.1.1