[fpc-pascal] MQTT package for freepascal/lazarus?
Bo Berglund
bo.berglund at gmail.com
Sun Oct 23 23:59:11 CEST 2022
On Sun, 23 Oct 2022 23:40:32 +0200, Jean SUZINEAU via fpc-pascal
<fpc-pascal at lists.freepascal.org> 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 with pipe, reading
>on standard input and writing on standard output :
>
>var
> s: String;
>begin
> repeat
> readln( s);
> writeln( s);
> until false;
>end.
>
Might get stuck at readln(s) if no messages are sent, i.e. no carriage-return
coming along?
AFAIK readln is blocking, right?
I will try things out tomorrow, it's midnight now...
--
Bo Berglund
Developer in Sweden
More information about the fpc-pascal
mailing list