How it works...
This recipe contains two FreePascal/Lazarus projects: the TCP / IP server (folder raspberrypi\RECIPE06\tcpserver.lpi of this recipe) and a console application (folder raspberrypi\RECIPE06\console of this recipe) to turn the light bulbs on and off cyclically.
Start the Raspberry PI and the console app, then also start the TCP/IP server and the Delphi application just written. If you have correctly followed all the steps, you will see in the circuit associated with the Raspberry Pi the lighting and the extinguishing of the light bulbs in a cyclical way and the Delphi application that through the switches graphically reports these changes.
Let's understand how the various elements involved work. We have already defined that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access