manekinekko / angular-web-bluetooth

The missing Web Bluetooth module for Angular
https://manekinekko.github.io/angular-web-bluetooth/
MIT License
196 stars 59 forks source link

How can I send print job to bluetooth connected printer? #69

Closed Sireini closed 1 year ago

Sireini commented 4 years ago

Hi there,

I am trying to achieve the same as this example: https://github.com/WebBluetoothCG/demos/tree/gh-pages/bluetooth-printer

Would like to send print jobs to the connected printer. I tested the example above and that is printing for me. Would like to print receipts in my webapp :)

Also in this function: requestValue() { this.valuesSubscription = this.bluetoothService.value().subscribe( () => null, (error) => console.log(error) ); }

I get this error:

No Services matching UUID 0000180f-0000-1000-8000-00805f9b34fb found in Device. (battery_service) at BluetoothCore.<anonymous> (manekinekko-angular-web-bluetooth.js:310)

richard457 commented 4 years ago

any follow up on this?

manekinekko commented 4 years ago

@Sireini Please know that since I don't have access to the printer, I can not effectively help you debug the issue. But I will do my best. Do you have any of your repositories I can look at?

Looking at the example repo (https://github.com/WebBluetoothCG/demos/tree/gh-pages/bluetooth-printer) it looks like you need to specify these values: