eliasweingaertner / peripage-A6-bluetooth

Directly printing on a Peripage A6 thermal printer via Bluetooth
MIT License
68 stars 11 forks source link

From python to js #5

Open KataPi opened 3 years ago

KataPi commented 3 years ago

Hi, I love your job! Thank you! I tried the script this week and it works very well.
I am running the script through a nodejs server which creates a png and sends it to print. Do you think it is possible to translate python to js using node-bluez ?

eliasweingaertner commented 3 years ago

Thank your your great feedback. Happy to hear it works for you!

You should be easily able to port the Python code to JS or basically any other language. The only requirement is that the used bluetooth SDK supports serial data (RFCOMM).

The library you posted contains a nice example for serial BT communication.