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

Bo Berglund bo.berglund at gmail.com
Sat Oct 22 23:37:14 CEST 2022


On Fri, 21 Oct 2022 16:32:17 +0200, Koenraad Lelong via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

>FWIW,
>I'm using MQTT via cmd-line. I.e. I call
>  ExecuteProcess(MQTTExec,MQTTStrArr);
>while MQTTExec is /usr/bin/mosquitto_pub
>
>That's on a linux-server.

I can use mosquitto for the pub part because that is a one-timer for each
message to send.
The problem is the other side, the client subscribing to the data...

Here the mosquitto_cli is running constantly and printing data as they come in
to the terminal window.
How can I pick that up from an application that will handle the data and do
something other than wayching the screen?

If I could get at each output that mosquitto_cli writes into a script or such
then I would be good to go.


-- 
Bo Berglund
Developer in Sweden



More information about the fpc-pascal mailing list