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

2022-10-23 Thread Bo Berglund via fpc-pascal
On Sun, 23 Oct 2022 23:40:32 +0200, Jean SUZINEAU via fpc-pascal wrote: >Le 23/10/2022 à 22:50, Jean SUZINEAU via fpc-pascal a écrit : >> >> This way you'll receive the output of mosquitto_sub on the standard >> input of SomePascalProgram. >> >A very small example for SomePascalProgram for  use

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

2022-10-23 Thread Jean SUZINEAU via fpc-pascal
Le 23/10/2022 à 22:50, Jean SUZINEAU via fpc-pascal a écrit : This way you'll receive the output of mosquitto_sub on the standard input of SomePascalProgram. A very small example for SomePascalProgram for  use with pipe, reading on standard input and writing on standard output : var    s:

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

2022-10-23 Thread Jean SUZINEAU via fpc-pascal
May be with a pipe |  ? Something like mosquitto_sub -h 192.168.117.131 -F '@Y-@m-@d @H:@M:@S ; %t ; %p' -t '#' | SomePascalProgram This way you'll receive the output of mosquitto_sub on the standard input of SomePascalProgram. I've tested locally on an Apache log with    tail -f

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

2022-10-23 Thread Bo Berglund via fpc-pascal
On Sun, 23 Oct 2022 11:51:31 +0200, Bo Berglund via fpc-pascal wrote: >TESTING. >No it does not work! >The mosquitto output cannot be redirected like this because it seems to be >printed to an output screen which is not redirectable... >All that happens is that an empty file is created at

Re: [fpc-pascal] FreePascal and the OrangePi

2022-10-23 Thread Florian Klämpfl via fpc-pascal
> Am 22.10.2022 um 00:19 schrieb Terry A. Haimann via fpc-pascal > : > > Dumb ? > > What download should I use to install the latest version of FreePascal > on the OrangePi 4 LTS, I am running Debian 3.0.6 Bullseye. > > The Orange Pi 4 LTS is an SBC running an ARM Processor. > Rockchip 3399

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

2022-10-23 Thread Bo Berglund via fpc-pascal
On Sun, 23 Oct 2022 05:19:24 +0200, Jean SUZINEAU via fpc-pascal wrote: >Le 22/10/2022 à 23:37, Bo Berglund via fpc-pascal a écrit : >> If I could get at each output that mosquitto_cli writes into a script or such >> then I would be good to go. >Maybe with a redirection ( > ) to a file in bash ?