Skip to content

Commit

Permalink
changed BT devices filter
Browse files Browse the repository at this point in the history
  • Loading branch information
puttley committed Apr 11, 2024
1 parent 7c3b067 commit b76ca63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b76ca63

Please sign in to comment.