From b76ca635da86a8ec3b69380e5675f716c4b8a8e7 Mon Sep 17 00:00:00 2001 From: puttley Date: Thu, 11 Apr 2024 11:46:56 -0500 Subject: [PATCH] changed BT devices filter --- bt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bt.js b/bt.js index da5850c..8d3d604 100644 --- a/bt.js +++ b/bt.js @@ -130,10 +130,11 @@ async function connect() { } navigator.bluetooth.requestDevice({ + // filters:[{namePrefix: [DEVICE_BT_NAME_PREFIX]}], filters: filterr, // acceptAllDevices:true, - optionalServices: [NUS_SERVICE_UUID] + optionalServices: [NUS_SERVICE_UUID] }).then(onScanResult).catch(function(e) { console.warn('failed to find a device:', e);