Skip to content

Commit

Permalink
BT Update
Browse files Browse the repository at this point in the history
  • Loading branch information
puttley committed Feb 21, 2024
1 parent dcaeea1 commit 79ca5d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bt.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ async function connect() {
}
navigator.bluetooth.requestDevice({

// filters:[
// {namePrefix: [DEVICE_BT_NAME_PREFIX]},
filters:[
{namePrefix: [DEVICE_BT_NAME_PREFIX]},


// ],
],

acceptAllDevices:true
// optionalServices: [NUS_SERVICE_UUID]
//acceptAllDevices:true
optionalServices: [NUS_SERVICE_UUID]

}).then(onScanResult).catch(function(e) {
console.warn('failed to find a device:', e);
Expand Down

0 comments on commit 79ca5d3

Please sign in to comment.