Miletus - Raspberry Pi - Write to device - e.g. /dev/usb/lp0

Hello,
I tried my first Miletus application.
I want to print directly on my connected local printer.
It works from the console like this:

echo "Test" > /dev/usb/lp0

How can I do the same in Miletus?
I tried it with Textfile, TFileStream - but both not supported.

Hope someone can help.. :slight_smile:

/Werner

At this moment, there is no built-in support for this. We'll investigate how we could make this possible.

1 Like

Hi,

While we research this, if it's just the console command you need to execute from your Miletus application you could try the following:
MiletusShell.Execute('echo "Test" > /dev/usb/lp0')

It returns a promise so you can also await if it's needed.