Getting ready

Delphi does not support direct deployment on Raspberry Pi with Rasbian OS, so for communication with the board, it was necessary to develop a TCP/IP server to send commands to the RPI so that they are interpreted and transformed into other ones (for example, the lighting of the LED). The server is developed using FreePascal, a language very close to Delphi. In order to use and make the most of the developed server, it is necessary to install FreePascal and Lazarus IDE. Here is the link: http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi, which helps you install a precompiled, stable version of FPC and Lazarus on the Raspberry Pi.

The Synapse library was used to build the TCP/IP server (Synapse offers serial port and TCP/IP connectivity). ...

Get Delphi Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.