diff --git a/README.md b/README.md index 04e70e7..1f37a4c 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,4 @@ Check your [browser and platform implementation status](https://github.com/WebBl - [BLE Keyboard & Mouse Dongle](https://github.com/DeqingSun/BLE-Keyboard-Mouse-Dongle) by [@DeqingSun](https://github.com/DeqingSun) - [Connect to the Myo armband](https://github.com/charliegerard/myo-web-bluetooth.js) by [@charliegerard](https://github.com/charliegerard) - [Mercedes-Benz car emulator demo](https://www.youtube.com/watch?v=97MlLkfLVf0) by [Mercedes-Benz Digital Challenge](http://www.mercedes-benz-challenge.com/) +try the api to print when using Thermal Mini Printer diff --git a/bluetooth-printer/index.html b/bluetooth-printer/index.html index cb74d82..2ff4e6a 100644 --- a/bluetooth-printer/index.html +++ b/bluetooth-printer/index.html @@ -248,7 +248,7 @@

Error

if (printCharacteristic == null) { navigator.bluetooth.requestDevice({ filters: [{ - services: ['000018f0-0000-1000-8000-00805f9b34fb'] + services: ['0xffe5] }] }) .then(device => { @@ -256,8 +256,8 @@

Error

console.log('Connecting to GATT Server...'); return device.gatt.connect(); }) - .then(server => server.getPrimaryService("000018f0-0000-1000-8000-00805f9b34fb")) - .then(service => service.getCharacteristic("00002af1-0000-1000-8000-00805f9b34fb")) + .then(server => server.getPrimaryService("0xffe5")) + .then(service => service.getCharacteristic("0xffe9")) .then(characteristic => { // Cache the characteristic printCharacteristic = characteristic;