MQTT
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:…
WeiterlesenEclipse 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.html Happy coding.
WeiterlesenPaho 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…
WeiterlesenMaximimum length of credentials (username, password, clientid) in MQTT v3.1.1
The CONNECT packet The 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…
Weiterlesen