Re: [fpc-pascal] FreePascal and the OrangePi

2022-10-21 Thread Travis Siegel via fpc-pascal
When I installed fpc on my raspberry pi, I compiled from source, but that was when the pi was relatively new.  I'm fairly certain there's a release for the pi.  If the orange one has an arm processor, the release for the raspberry should work on the orange as well. On 10/21/2022 6:19 PM,

[fpc-pascal] FreePascal and the OrangePi

2022-10-21 Thread 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 SOC

Re: [fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Luca Olivetti via fpc-pascal
El 21/10/22 a les 17:09, Luca Olivetti via fpc-pascal ha escrit: El 21/10/22 a les 12:48, Michael Van Canneyt via fpc-pascal ha escrit: I see that Kind is used after the module has been created, so setting it in either method (CreateNew or DataModuleCreate) should be OK, am I right? You are

Re: [fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Luca Olivetti via fpc-pascal
El 21/10/22 a les 12:48, Michael Van Canneyt via fpc-pascal ha escrit: I see that Kind is used after the module has been created, so setting it in either method (CreateNew or DataModuleCreate) should be OK, am I right? You are right. I will publish the method. That's an oversight.

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

Re: [fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Michael Van Canneyt via fpc-pascal
On Fri, 21 Oct 2022, Luca Olivetti via fpc-pascal wrote: El 21/10/22 a les 9:57, Luca Olivetti via fpc-pascal ha escrit: El 21/10/22 a les 9:48, Luca Olivetti via fpc-pascal ha escrit: El 21/10/22 a les 9:39, Michael Van Canneyt via fpc-pascal ha escrit: And a property of your module:   

Re: [fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Luca Olivetti via fpc-pascal
El 21/10/22 a les 9:57, Luca Olivetti via fpc-pascal ha escrit: El 21/10/22 a les 9:48, Luca Olivetti via fpc-pascal ha escrit: El 21/10/22 a les 9:39, Michael Van Canneyt via fpc-pascal ha escrit: And a property of your module:   property Kind: TWebModuleKind read FWebModuleKind write

Re: [fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Luca Olivetti via fpc-pascal
El 21/10/22 a les 9:48, Luca Olivetti via fpc-pascal ha escrit: El 21/10/22 a les 9:39, Michael Van Canneyt via fpc-pascal ha escrit: And a property of your module:   property Kind: TWebModuleKind read FWebModuleKind write FWebModuleKind default wkPooled; wkPooled is the default, but if

Re: [fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Luca Olivetti via fpc-pascal
El 21/10/22 a les 9:39, Michael Van Canneyt via fpc-pascal ha escrit: And a property of your module:  property Kind: TWebModuleKind read FWebModuleKind write FWebModuleKind default wkPooled; wkPooled is the default, but if you explicitly set this to 'wkPooled' in the constructor, you'll

Re: [fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Michael Van Canneyt via fpc-pascal
On Fri, 21 Oct 2022, Luca Olivetti via fpc-pascal wrote: Hello, I'm using a TFPHTTPServerHandler in threaded mode. I'm also using a TJSONRpcModule. I see that, even if the calls come from different threads, only one instance of the rpc module is ever created (on demand, the first time an

[fpc-pascal] Threaded webserver and TJSONRPCModule instances: can I be sure there's only one?

2022-10-21 Thread Luca Olivetti via fpc-pascal
Hello, I'm using a TFPHTTPServerHandler in threaded mode. I'm also using a TJSONRpcModule. I see that, even if the calls come from different threads, only one instance of the rpc module is ever created (on demand, the first time an rpc request comes in) and used. Since I'm relying on this

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

2022-10-21 Thread Zeljko Avramovic via fpc-pascal
> I am looking for a pascal implementation of the MQTT protocol. https://github.com/cutec-chris/TMQTTClient https://github.com/jamiei/Delphi-TMQTT2 https://github.com/songshuang8/MqttServer https://github.com/AndersonGaitolini/MQTT-Gaitolini https://github.com/ZiCog/mqtt-free-pascal