The LAMW help has some great examples of using Bluetooth to control external devices. I even managed to make a small application that controls the machines. Thanks to the developers!
The other day I saw an interesting device, in which a tablet is used as a monitor, through a USB / RS232 adapter it is connected to the ATMega128 controller, which, in turn, controls the hardware. This topic was discussed on the site
https://habr.com/ru/post/163913/ and there is a link to the library
https://github.com/yuriykulikov/AndroidSerialPort.
Can this library be used in LAMW and how can I adapt it for Pascal?