I am working on a handler for IoT data from an electricity meter which
communicates via TTL serial at 115200 baud. It only sends data in packets of
less than 1 kbytes every 5-10 seconds.
In order to validate the data I need to check the CRC16 checksum at the end and
here is where I don't find a go
If your main program is a console program, it's likely that you'll need
to call CheckSynchronize( from unit Class) in your main program/main
thread from time to time in order to allow the execution of calls of
methods specified in Synchronize in your thread (which reads mqtt messages).
I'm not
Le 23/10/2022 à 23:59, Bo Berglund via fpc-pascal a écrit :
Might get stuck at readln(s) if no messages are sent, i.e. no carriage-return
coming along?
AFAIK readln is blocking, right?
I've made a test with mosquitto_pub, it seems there is a line ending at
the end of each message, so you will