[fpc-pascal] MQTT package for freepascal/lazarus?

Karoly Balogh charlie at scenergy.dfmk.hu
Tue Oct 11 19:42:26 CEST 2022


Hi,

On Tue, 11 Oct 2022, Bo Berglund via fpc-pascal wrote:

> I am looking for a pascal implementation of the MQTT protocol.
> I could not find anything inside Lazarus' OnLinePackageManager.
>
> Is there something like that available?

I made a front-end Pascal library, and and Object Pascal wrapper for
libmosquitto a couple of years ago. It's available here. It's know to work
on Linux, Windows and macOS at least. It's against libmosquitto 1.x. Not
sure if 2.x got released meanwhile. I can update things if needed. (Pull
requests are welcomed.)

It's available here:
https://github.com/chainq/mosquitto-p

Before I started working on this, I've also seen some Delphi
library/component that was a fully Pascal implementation of the MQTT
protocol but it was full of newschool Delphi-isms, which I disliked, so I
did my own solution instead. But what I want to say with this, there are
definitely other options out there too with different pros/cons.

Charlie


More information about the fpc-pascal mailing list