From 4b14f936aacb2ed2b79621b4d27c88e3c553f2c7 Mon Sep 17 00:00:00 2001
From: tmossi <38131563+tmossi@users.noreply.github.com>
Date: Mon, 9 Apr 2018 16:09:15 +0000
Subject: [PATCH 1/3] Thomas Mossi
try the api to print when using Thermal Mini Printer
---
README.md | 1 +
1 file changed, 1 insertion(+)
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
From 5c71f49ea762a4043145493b438b21dc6121c34e Mon Sep 17 00:00:00 2001
From: tmossi <38131563+tmossi@users.noreply.github.com>
Date: Mon, 9 Apr 2018 17:18:50 +0000
Subject: [PATCH 2/3] Update index.html
---
bluetooth-printer/index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bluetooth-printer/index.html b/bluetooth-printer/index.html
index cb74d82..735f32c 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: ['00001101-0000-1000-8000-00805f9b34fb']
}]
})
.then(device => {
@@ -256,7 +256,7 @@ Error
console.log('Connecting to GATT Server...');
return device.gatt.connect();
})
- .then(server => server.getPrimaryService("000018f0-0000-1000-8000-00805f9b34fb"))
+ .then(server => server.getPrimaryService("00001101-0000-1000-8000-00805f9b34fb"))
.then(service => service.getCharacteristic("00002af1-0000-1000-8000-00805f9b34fb"))
.then(characteristic => {
// Cache the characteristic
From f1761cd04ae959266ab85f4b8de64100aede0df5 Mon Sep 17 00:00:00 2001
From: tmossi <38131563+tmossi@users.noreply.github.com>
Date: Thu, 12 Apr 2018 10:51:11 +0000
Subject: [PATCH 3/3] Update index.html
---
bluetooth-printer/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bluetooth-printer/index.html b/bluetooth-printer/index.html
index 735f32c..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: ['00001101-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("00001101-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;