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

2022-10-21 Thread Koenraad Lelong via fpc-pascal
Hi, 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. Op 20/10/2022 om 15:57 schreef Bo Berglund via fpc-pascal: On Thu, 20 Oct 2022 11:11:17 +0200, Bo Berglund via fpc-pascal wrote: On Tu

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
FWIW, That array did the trick. Thanks again. But I'll study the wrapper in the near future. Op 25/08/2020 om 18:18 schreef Koenraad Lelong via fpc-pascal: Hi, Thanks for the suggestion I will try that array. Why I did it like that : I thought it an easy and fast way to enhance my proje

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, Thanks for the reply, I did know of that project. The thing is, at the moment I don't know how to implement that in my project. I'm still studying this. Op 25/08/2020 om 15:55 schreef Luca Olivetti via fpc-pascal: Not what you're asking, but did you try to send the messages yourself in

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, Thanks for the suggestion I will try that array. Why I did it like that : I thought it an easy and fast way to enhance my project. I added the same value to rrd, the same way, i.e. a ExecuteProcess with a bunch of parameters. There it works, but no double quotes needed. LAter I will try

[fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, I'm extending an old daemon so it writes the data to MQTT, using mosquitto_pub. To have a correct message (-m ...) I need to include double-quotes. But it seems ExecuteProcess(exec,cmdline) splits the cmdline according some rules if it's a single string. When I tried to do it in a single s