WebBluetoothCG / web-bluetooth

Bluetooth support for the Web.
http://www.w3.org/community/web-bluetooth/
Other
1.37k stars 185 forks source link

navigator.bluetooth.requestDevice (opt) same filter but ios browser bluefy doesn't work #624

Closed hrjAccount closed 3 months ago

hrjAccount commented 3 months ago

let filters = isIos ? [ { namePrefix: "YK", manufacturerData: [{ companyIdentifier: 0x09b3, dataPrefix: new Uint8Array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]), mask: new Uint8Array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]) }] } ] : [ { manufacturerData: [{ companyIdentifier: 0x09b3, dataPrefix: new Uint8Array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]), mask: new Uint8Array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]) }] }, ] let options = { filters: filters, optionalServices: [Code.bxlink, Code.fota], acceptAllDevices: false, };

const device = await navigator.bluetooth.requestDevice(options);

chrome 、android can Search for the specific device but ios browser bluefy doesn't work

dlech commented 3 months ago

This repository is about the technical specification, not any implementation. I think you need to contact Bluefy support and report the bug there.

reillyeon commented 3 months ago

Closing as off-topic.