Re: [fpc-pascal] Ethernet Relays

2020-05-24 Thread James Richters
I got this working, thanks for the advice Ched, Here's my test program: uses fphttpclient; Begin TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/3/01'); TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/3/03'); TFPHTTPCLIENT.SIMPLEGET('http://10.10.01.01/3/05'); TFPHTTPCLIENT.SIMPLEGET('http:/

Re: [fpc-pascal] Ethernet Relays

2020-05-24 Thread James Richters
Thanks!! I'm happy with http, I should have mentioned I'm on Windows 10, any issues with that unit under windows? James -Original Message- From: fpc-pascal On Behalf Of Ched via fpc-pascal Sent: Sunday, May 24, 2020 3:02 PM To: fpc-pascal@lists.freepascal.org Cc: Ched Subject: Re:

Re: [fpc-pascal] Ethernet Relays

2020-05-24 Thread Ched via fpc-pascal
Hello James, You'll find a source of happiness with unit fphttpclient . Particularily with the simplget function: TFPHTTPCLIENT.SIMPLEGET('http://192.168.1.4/3/00') It is said that it works with https also, but under the Mageia7 distro, you probably encounter problems I haven't yet solved.

[fpc-pascal] Ethernet Relays

2020-05-24 Thread James Richters
Does anyone have any advice on how to get started sending commands from FPC to use these ethernet relays: https://www.amazon.com/gp/product/B076CNJNFH Default IP :192.168.1.4 prot:3http://192.168.1.4/3 HTTP Comment: http://192.168.1.4/3/00 : Relay-01 OFF http://192

Re: [fpc-pascal] Copying a Pchar to an array of bytes

2020-05-24 Thread Bo Berglund via fpc-pascal
On Tue, 19 May 2020 19:22:55 +0200, Luca Olivetti wrote: >Move(Hello^,buffer,len) or: Move(Hello[0],buffer,len); -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/ma

Re: [fpc-pascal] Delphi TService

2020-05-24 Thread Bo Berglund via fpc-pascal
On Wed, 20 May 2020 11:15:59 +0200 (CEST), Michael Van Canneyt wrote: > > >On Wed, 20 May 2020, Marco van de Voort wrote: > >> >> Does somebody have a compatible TService somewhere for dual compilation >> Delphi/Lazarus purposes? There is daemonapp, but that seems to be >> incompatible, but may

Re: [fpc-pascal] Zoned date/time conversions

2020-05-24 Thread Graeme Geldenhuys
On 24/05/2020 12:56 pm, Michael Van Canneyt wrote: > However, there is some third-party class which has complete date/time > handling: > https://wiki.freepascal.org/PascalTZ Thanks Michael, that looks like what I need. Good to see it has support for the time zone database too. Regards, Graeme

Re: [fpc-pascal] Zoned date/time conversions

2020-05-24 Thread Michael Van Canneyt
On Sun, 24 May 2020, Graeme Geldenhuys wrote: Hi, I need to do timezone enabled date/time conversions... Use case 1) We want the application server to always use UCT and the application server might not be in the sime timezone as the client app. So we need to convert local time to UCT, do so

[fpc-pascal] Zoned date/time conversions

2020-05-24 Thread Graeme Geldenhuys
Hi, I need to do timezone enabled date/time conversions... Use case 1) We want the application server to always use UCT and the application server might not be in the sime timezone as the client app. So we need to convert local time to UCT, do some time based processing on the server, then return

Re: [fpc-pascal] How to implement a simple tcp/ip connection?

2020-05-24 Thread Bo Berglund via fpc-pascal
On Tue, 19 May 2020 18:25:54 +0200, Giuliano Colla wrote: >Now I'm planning to look in more detail the old Delphi implementation, >in order to see how they were tacking advantage of Libc. If you're >interested I'll let you know my results. > Yes, please! -- Bo Berglund Developer in Sweden