Re: [fpc-pascal] Ethernet Relays

2020-09-07 Thread Michael Van Canneyt via fpc-pascal
Add the ssockets unit to your uses clause. Michael On Mon, 7 Sep 2020, James Richters via fpc-pascal wrote: When I try to compile either of the examples below, I get Error: Identifier not found "ESocketError" Any ideas? James Yes, catch the ESocketError in a try..except: Try S:=TFPHTT

Re: [fpc-pascal] Why can I not build fpc 3.0.4 with ppcarm 3.0.0 or 3.0.4?

2020-09-07 Thread Bo Berglund via fpc-pascal
On Tue, 08 Sep 2020 00:59:51 +0200, Bo Berglund via fpc-pascal wrote: >Today when I was setting up a Raspberry PiZero I was hit with this >message when I was going to build fpc 3.0.4 (sources checked out from >svn): > >Makefile:2790: *** The only supported starting compiler version is >3.0.2. You

Re: [fpc-pascal] Ethernet Relays

2020-09-07 Thread James Richters via fpc-pascal
When I try to compile either of the examples below, I get Error: Identifier not found "ESocketError" Any ideas? James Yes, catch the ESocketError in a try..except: Try S:=TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/3/15'); except On E: ESocketError do Writeln('Could not c

[fpc-pascal] Why can I not build fpc 3.0.4 with ppcarm 3.0.0 or 3.0.4?

2020-09-07 Thread Bo Berglund via fpc-pascal
I have a script I use all the time to install FPC/Lazarus on Raspberry Pi units when I configure for development. Today when I was setting up a Raspberry PiZero I was hit with this message when I was going to build fpc 3.0.4 (sources checked out from svn): Makefile:2790: *** The only supported

Re: [fpc-pascal] How to implement a circular buffer object in pascal?

2020-09-07 Thread Brian via fpc-pascal
Bo, Most of the users on this forum have never interfaced with hardware , as you can see from the responses. Those who have interfaced with hardware have developed circular buffers which they know work , and they reuse them again and again. I will describe in general terms the structure a circul

Re: [fpc-pascal] TFPTimer does not fire, why?

2020-09-07 Thread Michael Van Canneyt via fpc-pascal
On Mon, 7 Sep 2020, Bo Berglund via fpc-pascal wrote: On Mon, 7 Sep 2020 12:40:07 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: Why does the FpTimer event not fire? Do you call checksynchronize at regular intervals ? The default timer is threaded, and the OnTimer event is called

Re: [fpc-pascal] TFPTimer does not fire, why?

2020-09-07 Thread Bo Berglund via fpc-pascal
On Mon, 7 Sep 2020 12:40:07 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: >> Why does the FpTimer event not fire? > >Do you call checksynchronize at regular intervals ? The default timer is >threaded, and the OnTimer event is called in the main thread. For this to >work, you need to cal

Re: [fpc-pascal] TFPTimer does not fire, why?

2020-09-07 Thread Michael Van Canneyt via fpc-pascal
On Mon, 7 Sep 2020, Bo Berglund via fpc-pascal wrote: Ì have a problem using TFpTimer on Linux (FPC 3.0.4, Lazarus 2.0.8 on Raspbian). The application is a small GUI test app where I have added a timer in order to update the display with incoming data. So I have it set up like this: {$mode De

[fpc-pascal] TFPTimer does not fire, why?

2020-09-07 Thread Bo Berglund via fpc-pascal
Ì have a problem using TFpTimer on Linux (FPC 3.0.4, Lazarus 2.0.8 on Raspbian). The application is a small GUI test app where I have added a timer in order to update the display with incoming data. So I have it set up like this: {$mode Delphi} interface uses ... fptimer, ... type TfrmMa