@capgo/capacitor-bluetooth-low-energy 8.1.7 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +262 -0
- package/android/src/main/java/ee/forgr/plugin/bluetooth_low_energy/BluetoothLowEnergyPlugin.java +366 -1
- package/dist/docs.json +765 -27
- package/dist/esm/definitions.d.ts +300 -0
- package/dist/esm/definitions.js +0 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +5 -1
- package/dist/esm/web.js +12 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +12 -5
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +12 -5
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/BluetoothLowEnergyPlugin/BluetoothLowEnergy.swift +214 -0
- package/ios/Sources/BluetoothLowEnergyPlugin/BluetoothLowEnergyPlugin.swift +103 -1
- package/package.json +1 -1
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/shim.js","esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["import { Capacitor } from '@capacitor/core';\nconst PLUGIN_NAME = 'BluetoothLowEnergy';\nconst DEFAULT_SCAN_TIMEOUT = 15000;\nconst BLUETOOTH_BASE_UUID_SUFFIX = '-0000-1000-8000-00805f9b34fb';\nconst BLUETOOTH_SERVICE_UUID_ALIASES = {\n alert_notification: 0x1811,\n automation_io: 0x1815,\n battery_service: 0x180f,\n binary_sensor: 0x183b,\n blood_pressure: 0x1810,\n body_composition: 0x181b,\n bond_management: 0x181e,\n continuous_glucose_monitoring: 0x181f,\n coordinated_set_identification_service: 0x1846,\n current_time: 0x1805,\n cycling_power: 0x1818,\n cycling_speed_and_cadence: 0x1816,\n device_information: 0x180a,\n device_time: 0x1847,\n emergency_configuration: 0x183c,\n environmental_sensing: 0x181a,\n fitness_machine: 0x1826,\n generic_access: 0x1800,\n generic_attribute: 0x1801,\n generic_media_control_service: 0x1849,\n generic_telephone_bearer_service: 0x184c,\n glucose: 0x1808,\n health_thermometer: 0x1809,\n heart_rate: 0x180d,\n http_proxy: 0x1823,\n human_interface_device: 0x1812,\n immediate_alert: 0x1802,\n indoor_positioning: 0x1821,\n insulin_delivery: 0x183a,\n internet_protocol_support: 0x1820,\n link_loss: 0x1803,\n location_and_navigation: 0x1819,\n media_control_service: 0x1848,\n mesh_provisioning: 0x1827,\n mesh_proxy: 0x1828,\n microphone_control: 0x184d,\n next_dst_change: 0x1807,\n object_transfer: 0x1825,\n phone_alert_status: 0x180e,\n physical_activity_monitor: 0x183e,\n pulse_oximeter: 0x1822,\n reconnection_configuration: 0x1829,\n reference_time_update: 0x1806,\n running_speed_and_cadence: 0x1814,\n scan_parameters: 0x1813,\n transport_discovery: 0x1824,\n tx_power: 0x1804,\n user_data: 0x181c,\n volume_control: 0x1844,\n volume_offset_control: 0x1845,\n weight_scale: 0x181d,\n};\nclass ShimEventEmitter {\n constructor() {\n this.listeners = new Map();\n }\n addEventListener(type, listener) {\n var _a;\n if (!type) {\n return;\n }\n const typeListeners = (_a = this.listeners.get(type)) !== null && _a !== void 0 ? _a : new Set();\n typeListeners.add(listener);\n this.listeners.set(type, typeListeners);\n }\n removeEventListener(type, listener) {\n const typeListeners = this.listeners.get(type);\n if (!typeListeners) {\n return;\n }\n typeListeners.delete(listener);\n if (typeListeners.size === 0) {\n this.listeners.delete(type);\n }\n }\n dispatchShimEvent(type, target) {\n const event = { type, target };\n const typeListeners = this.listeners.get(type);\n typeListeners === null || typeListeners === void 0 ? void 0 : typeListeners.forEach((listener) => {\n listener(event);\n });\n const handler = target[`on${type}`];\n if (typeof handler === 'function') {\n handler(event);\n }\n }\n}\nclass NativeWebBluetoothShim {\n constructor(root, plugin) {\n this.root = root;\n this.plugin = plugin;\n this.initializedPromise = null;\n this.listenersPromise = null;\n this.pendingRequest = null;\n this.deviceCache = new Map();\n this.characteristicCache = new Map();\n this.exposedDeviceIds = new Set();\n this.listenerHandles = [];\n }\n install() {\n var _a;\n var _b;\n if (this.root.__capgoBluetoothLowEnergyShimInstalled || !this.root.navigator || this.root.navigator.bluetooth) {\n return;\n }\n const bluetooth = new BluetoothShimFacade(this);\n Object.defineProperty(this.root.navigator, 'bluetooth', {\n configurable: true,\n enumerable: true,\n value: bluetooth,\n writable: false,\n });\n this.root.BluetoothDevice = BluetoothDeviceShim;\n this.root.BluetoothRemoteGATTServer = BluetoothRemoteGATTServerShim;\n this.root.BluetoothRemoteGATTService = BluetoothRemoteGATTServiceShim;\n this.root.BluetoothRemoteGATTCharacteristic = BluetoothRemoteGATTCharacteristicShim;\n this.root.BluetoothRemoteGATTDescriptor = BluetoothRemoteGATTDescriptorShim;\n (_a = (_b = this.root).BluetoothUUID) !== null && _a !== void 0 ? _a : (_b.BluetoothUUID = {\n canonicalUUID,\n getService: canonicalUUID,\n getCharacteristic: canonicalUUID,\n getDescriptor: canonicalUUID,\n });\n this.root.__capgoBluetoothLowEnergyShimInstalled = true;\n }\n async getAvailability() {\n await this.ensureInitialized();\n const { available } = await this.plugin.isAvailable();\n return available === true;\n }\n async getDevices() {\n await this.ensureInitialized();\n await this.ensureListeners();\n const { devices } = await this.plugin.getConnectedDevices();\n devices.forEach((deviceData) => {\n const device = this.getOrCreateDevice(deviceData);\n device.gatt.setConnected(true);\n this.exposedDeviceIds.add(device.id);\n });\n return Array.from(this.exposedDeviceIds)\n .map((deviceId) => this.deviceCache.get(deviceId))\n .filter((device) => typeof device !== 'undefined');\n }\n async requestDevice(options) {\n var _a;\n if (!options || (options.acceptAllDevices !== true && (!options.filters || options.filters.length === 0))) {\n throw new TypeError('requestDevice requires filters or acceptAllDevices: true.');\n }\n if (options.acceptAllDevices !== true &&\n ((_a = options.filters) === null || _a === void 0 ? void 0 : _a.some((filter) => (!filter.services || filter.services.length === 0) &&\n typeof filter.name !== 'string' &&\n typeof filter.namePrefix !== 'string'))) {\n throw new TypeError('requestDevice filters must specify a name, namePrefix, or at least one service.');\n }\n if (this.pendingRequest) {\n throw createBluetoothError('InvalidStateError', 'A Bluetooth request is already in progress.');\n }\n await this.ensureListeners();\n await this.ensureScanPrerequisites();\n await this.stopScanSilently();\n return new Promise((resolve, reject) => {\n const timeoutId = setTimeout(() => {\n if (!this.pendingRequest) {\n return;\n }\n this.pendingRequest = null;\n void this.stopScanSilently();\n reject(createBluetoothError('NotFoundError', 'No matching Bluetooth device was found.'));\n }, DEFAULT_SCAN_TIMEOUT);\n this.pendingRequest = {\n options,\n reject,\n resolve: (device) => {\n device.gatt.setConnected(false);\n resolve(device);\n },\n timeoutId,\n };\n void this.plugin\n .startScan({\n allowDuplicates: true,\n services: mergeRequestedServices(options.filters),\n timeout: DEFAULT_SCAN_TIMEOUT,\n })\n .catch((error) => {\n if (!this.pendingRequest) {\n return;\n }\n clearTimeout(timeoutId);\n this.pendingRequest = null;\n reject(normalizeError(error));\n });\n });\n }\n async connectDevice(device) {\n await this.ensureInitialized();\n await this.ensureListeners();\n await this.plugin.connect({ deviceId: device.id });\n device.gatt.setConnected(true);\n device.setServices(null);\n return device.gatt;\n }\n disconnectDevice(device) {\n if (!device.gatt.connected) {\n return;\n }\n device.gatt.setConnected(false);\n device.setServices(null);\n void this.plugin.disconnect({ deviceId: device.id }).catch(() => undefined);\n }\n async getPrimaryServices(device, serviceUuid) {\n const services = await this.ensureServices(device);\n const mapped = services.map((serviceData) => new BluetoothRemoteGATTServiceShim(this, device, serviceData));\n if (typeof serviceUuid === 'undefined') {\n return mapped;\n }\n const normalized = normalizeUuid(serviceUuid);\n return mapped.filter((service) => normalizeUuid(service.uuid) === normalized);\n }\n async getPrimaryService(device, serviceUuid) {\n const services = await this.getPrimaryServices(device, serviceUuid);\n const service = services[0];\n if (!service) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth service was not found.');\n }\n return service;\n }\n async getCharacteristics(device, serviceUuid, characteristicUuid) {\n const service = await this.findService(device, serviceUuid);\n const characteristics = service.characteristics.map((characteristicData) => {\n const characteristic = this.getOrCreateCharacteristic(device, service.uuid, characteristicData);\n characteristic.service = new BluetoothRemoteGATTServiceShim(this, device, service);\n return characteristic;\n });\n if (typeof characteristicUuid === 'undefined') {\n return characteristics;\n }\n const normalizedCharacteristicUuid = normalizeUuid(characteristicUuid);\n return characteristics.filter((characteristic) => normalizeUuid(characteristic.uuid) === normalizedCharacteristicUuid);\n }\n async getCharacteristic(device, serviceUuid, characteristicUuid) {\n const { characteristic, service } = await this.findCharacteristic(device, serviceUuid, characteristicUuid);\n const shim = this.getOrCreateCharacteristic(device, service.uuid, characteristic);\n shim.service = new BluetoothRemoteGATTServiceShim(this, device, service);\n return shim;\n }\n async getDescriptors(device, serviceUuid, characteristicUuid, descriptorUuid) {\n const { characteristic } = await this.findCharacteristic(device, serviceUuid, characteristicUuid);\n const normalizedDescriptorUuid = descriptorUuid ? normalizeUuid(descriptorUuid) : null;\n return characteristic.descriptors\n .filter((descriptorData) => {\n if (!normalizedDescriptorUuid) {\n return true;\n }\n return normalizeUuid(descriptorData.uuid) === normalizedDescriptorUuid;\n })\n .map((descriptorData) => {\n const descriptor = new BluetoothRemoteGATTDescriptorShim(this, device, normalizeUuid(serviceUuid), normalizeUuid(characteristicUuid), descriptorData);\n return descriptor;\n });\n }\n async getDescriptor(device, serviceUuid, characteristicUuid, descriptorUuid) {\n const descriptor = (await this.getDescriptors(device, serviceUuid, characteristicUuid, descriptorUuid))[0];\n if (!descriptor) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth descriptor was not found.');\n }\n return descriptor;\n }\n async readCharacteristic(device, serviceUuid, characteristicUuid) {\n const { value } = await this.plugin.readCharacteristic({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n return toDataView(value);\n }\n async writeCharacteristic(device, serviceUuid, characteristicUuid, value, type) {\n await this.plugin.writeCharacteristic({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n type,\n value: Array.from(toUint8Array(value)),\n });\n }\n async startNotifications(device, serviceUuid, characteristicUuid) {\n await this.ensureListeners();\n await this.plugin.startCharacteristicNotifications({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n }\n async stopNotifications(device, serviceUuid, characteristicUuid) {\n await this.plugin.stopCharacteristicNotifications({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n }\n async readDescriptor(device, serviceUuid, characteristicUuid, descriptorUuid) {\n const { value } = await this.plugin.readDescriptor({\n characteristic: normalizeUuid(characteristicUuid),\n descriptor: normalizeUuid(descriptorUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n return toDataView(value);\n }\n async writeDescriptor(device, serviceUuid, characteristicUuid, descriptorUuid, value) {\n await this.plugin.writeDescriptor({\n characteristic: normalizeUuid(characteristicUuid),\n descriptor: normalizeUuid(descriptorUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n value: Array.from(toUint8Array(value)),\n });\n }\n async ensureInitialized() {\n if (!this.initializedPromise) {\n this.initializedPromise = this.plugin.initialize({ mode: 'central' }).catch((error) => {\n this.initializedPromise = null;\n throw normalizeError(error);\n });\n }\n await this.initializedPromise;\n }\n async ensureListeners() {\n if (!this.listenersPromise) {\n this.listenersPromise = Promise.all([\n this.plugin.addListener('deviceScanned', (event) => this.handleDeviceScanned(event)),\n this.plugin.addListener('deviceDisconnected', (event) => this.handleDeviceDisconnected(event)),\n this.plugin.addListener('characteristicChanged', (event) => this.handleCharacteristicChanged(event)),\n ]).then((handles) => {\n this.listenerHandles.push(...handles);\n });\n }\n await this.listenersPromise;\n }\n handleDeviceScanned(event) {\n if (!this.pendingRequest || !event.device) {\n return;\n }\n if (!matchesRequestOptions(event.device, this.pendingRequest.options)) {\n return;\n }\n const device = this.getOrCreateDevice(event.device);\n this.exposedDeviceIds.add(device.id);\n const request = this.pendingRequest;\n this.pendingRequest = null;\n clearTimeout(request.timeoutId);\n void this.stopScanSilently();\n request.resolve(device);\n }\n handleDeviceDisconnected(event) {\n const device = this.deviceCache.get(event.deviceId);\n device === null || device === void 0 ? void 0 : device.notifyDisconnected();\n }\n handleCharacteristicChanged(event) {\n const key = createCharacteristicKey(event.deviceId, event.service, event.characteristic);\n const characteristic = this.characteristicCache.get(key);\n characteristic === null || characteristic === void 0 ? void 0 : characteristic.handleValueChange(event.value);\n }\n async ensureScanPrerequisites() {\n if (!(await this.getAvailability())) {\n throw createBluetoothError('NotSupportedError', 'Bluetooth Low Energy is not available on this device.');\n }\n const { enabled } = await this.plugin.isEnabled();\n if (!enabled) {\n throw createBluetoothError('NotFoundError', 'Bluetooth is disabled on this device.');\n }\n const permissions = await this.plugin.requestPermissions();\n if (permissions.bluetooth === 'denied' || permissions.location === 'denied') {\n throw createBluetoothError('NotAllowedError', 'Bluetooth permissions were denied.');\n }\n const location = await this.plugin.isLocationEnabled();\n if (location.enabled === false) {\n throw createBluetoothError('NotFoundError', 'Location services must be enabled for Bluetooth scanning.');\n }\n }\n async ensureServices(device) {\n const cachedServices = device.getServices();\n if (cachedServices) {\n return cachedServices;\n }\n if (!device.gatt.connected) {\n throw createBluetoothError('NetworkError', 'Device is not connected.');\n }\n await this.plugin.discoverServices({ deviceId: device.id });\n const { services } = await this.plugin.getServices({ deviceId: device.id });\n device.setServices(services);\n return services;\n }\n async findService(device, serviceUuid) {\n const services = await this.ensureServices(device);\n const normalized = normalizeUuid(serviceUuid);\n const service = services.find((entry) => normalizeUuid(entry.uuid) === normalized);\n if (!service) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth service was not found.');\n }\n return service;\n }\n async findCharacteristic(device, serviceUuid, characteristicUuid) {\n const service = await this.findService(device, serviceUuid);\n const normalized = normalizeUuid(characteristicUuid);\n const characteristic = service.characteristics.find((entry) => normalizeUuid(entry.uuid) === normalized);\n if (!characteristic) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth characteristic was not found.');\n }\n return { characteristic, service };\n }\n getOrCreateDevice(deviceData) {\n const existingDevice = this.deviceCache.get(deviceData.deviceId);\n if (existingDevice) {\n existingDevice.updateMetadata(deviceData);\n return existingDevice;\n }\n const device = new BluetoothDeviceShim(this, deviceData);\n this.deviceCache.set(deviceData.deviceId, device);\n return device;\n }\n getOrCreateCharacteristic(device, serviceUuid, characteristicData) {\n const key = createCharacteristicKey(device.id, serviceUuid, characteristicData.uuid);\n const existingCharacteristic = this.characteristicCache.get(key);\n if (existingCharacteristic) {\n existingCharacteristic.update(characteristicData);\n return existingCharacteristic;\n }\n const characteristic = new BluetoothRemoteGATTCharacteristicShim(this, device, serviceUuid, characteristicData);\n this.characteristicCache.set(key, characteristic);\n return characteristic;\n }\n async stopScanSilently() {\n try {\n await this.plugin.stopScan();\n }\n catch (_a) {\n // Ignore stale scan errors.\n }\n }\n}\nclass BluetoothDeviceShim extends ShimEventEmitter {\n constructor(shim, deviceData) {\n super();\n this.services = null;\n this.id = deviceData.deviceId;\n this.name = deviceData.name;\n this.gatt = new BluetoothRemoteGATTServerShim(shim, this);\n this.updateMetadata(deviceData);\n }\n updateMetadata(deviceData) {\n this.name = deviceData.name;\n this.rssi = deviceData.rssi;\n this.manufacturerData = deviceData.manufacturerData;\n this.serviceUuids = deviceData.serviceUuids;\n }\n getServices() {\n return this.services;\n }\n setServices(services) {\n this.services = services;\n }\n notifyDisconnected() {\n this.gatt.setConnected(false);\n this.services = null;\n this.dispatchShimEvent('gattserverdisconnected', this);\n }\n async watchAdvertisements() {\n throw createBluetoothError('NotSupportedError', 'watchAdvertisements is not implemented by the Capacitor shim.');\n }\n}\nclass BluetoothRemoteGATTServerShim {\n constructor(shim, device) {\n this.shim = shim;\n this.device = device;\n this.connected = false;\n }\n setConnected(connected) {\n this.connected = connected;\n }\n async connect() {\n return this.shim.connectDevice(this.device);\n }\n disconnect() {\n this.shim.disconnectDevice(this.device);\n }\n async getPrimaryServices(serviceUuid) {\n return this.shim.getPrimaryServices(this.device, serviceUuid);\n }\n async getPrimaryService(serviceUuid) {\n return this.shim.getPrimaryService(this.device, serviceUuid);\n }\n}\nclass BluetoothRemoteGATTServiceShim {\n constructor(shim, device, serviceData) {\n this.shim = shim;\n this.device = device;\n this.serviceData = serviceData;\n this.isPrimary = true;\n }\n get uuid() {\n return this.serviceData.uuid;\n }\n async getCharacteristics(characteristicUuid) {\n return this.shim.getCharacteristics(this.device, this.uuid, characteristicUuid);\n }\n async getCharacteristic(characteristicUuid) {\n return this.shim.getCharacteristic(this.device, this.uuid, characteristicUuid);\n }\n}\nclass BluetoothRemoteGATTCharacteristicShim extends ShimEventEmitter {\n constructor(shim, device, serviceUuid, characteristicData) {\n super();\n this.shim = shim;\n this.device = device;\n this.serviceUuid = serviceUuid;\n this.characteristicData = characteristicData;\n this.service = null;\n this.value = null;\n }\n get uuid() {\n return this.characteristicData.uuid;\n }\n get properties() {\n return this.characteristicData.properties;\n }\n update(characteristicData) {\n this.characteristicData = characteristicData;\n }\n async getDescriptors(descriptorUuid) {\n const descriptors = await this.shim.getDescriptors(this.device, this.serviceUuid, this.uuid, descriptorUuid);\n descriptors.forEach((descriptor) => {\n descriptor.characteristic = this;\n });\n return descriptors;\n }\n async getDescriptor(descriptorUuid) {\n const descriptor = await this.shim.getDescriptor(this.device, this.serviceUuid, this.uuid, descriptorUuid);\n descriptor.characteristic = this;\n return descriptor;\n }\n async readValue() {\n this.value = await this.shim.readCharacteristic(this.device, this.serviceUuid, this.uuid);\n return this.value;\n }\n async writeValue(value) {\n await this.writeValueWithResponse(value);\n }\n async writeValueWithResponse(value) {\n await this.shim.writeCharacteristic(this.device, this.serviceUuid, this.uuid, value, 'withResponse');\n }\n async writeValueWithoutResponse(value) {\n await this.shim.writeCharacteristic(this.device, this.serviceUuid, this.uuid, value, 'withoutResponse');\n }\n async startNotifications() {\n await this.shim.startNotifications(this.device, this.serviceUuid, this.uuid);\n return this;\n }\n async stopNotifications() {\n await this.shim.stopNotifications(this.device, this.serviceUuid, this.uuid);\n return this;\n }\n handleValueChange(value) {\n this.value = toDataView(value);\n this.dispatchShimEvent('characteristicvaluechanged', this);\n }\n}\nclass BluetoothRemoteGATTDescriptorShim {\n constructor(shim, device, serviceUuid, characteristicUuid, descriptorData) {\n this.shim = shim;\n this.device = device;\n this.serviceUuid = serviceUuid;\n this.characteristicUuid = characteristicUuid;\n this.descriptorData = descriptorData;\n this.characteristic = null;\n this.value = null;\n }\n get uuid() {\n return this.descriptorData.uuid;\n }\n async readValue() {\n this.value = await this.shim.readDescriptor(this.device, this.serviceUuid, this.characteristicUuid, this.uuid);\n return this.value;\n }\n async writeValue(value) {\n await this.shim.writeDescriptor(this.device, this.serviceUuid, this.characteristicUuid, this.uuid, value);\n }\n}\nclass BluetoothShimFacade extends ShimEventEmitter {\n constructor(shim) {\n super();\n this.shim = shim;\n }\n async getAvailability() {\n return this.shim.getAvailability();\n }\n async getDevices() {\n return this.shim.getDevices();\n }\n async requestDevice(options) {\n return this.shim.requestDevice(options);\n }\n}\nfunction mergeRequestedServices(filters) {\n if (!filters || filters.some((filter) => !filter.services || filter.services.length === 0)) {\n return [];\n }\n const services = new Set();\n filters.forEach((filter) => {\n var _a;\n (_a = filter.services) === null || _a === void 0 ? void 0 : _a.forEach((service) => {\n services.add(normalizeUuid(service));\n });\n });\n return Array.from(services);\n}\nfunction matchesRequestOptions(device, options) {\n var _a;\n if (options.acceptAllDevices) {\n return true;\n }\n if (!options.filters || options.filters.length === 0) {\n return false;\n }\n const advertisedServices = new Set(((_a = device.serviceUuids) !== null && _a !== void 0 ? _a : []).map((serviceUuid) => normalizeUuid(serviceUuid)));\n return options.filters.some((filter) => {\n var _a, _b;\n const hasServiceConstraint = Boolean(filter.services && filter.services.length > 0);\n const hasNameConstraint = typeof filter.name === 'string';\n const hasNamePrefixConstraint = typeof filter.namePrefix === 'string';\n if (!hasServiceConstraint && !hasNameConstraint && !hasNamePrefixConstraint) {\n return false;\n }\n if (filter.name && device.name !== filter.name) {\n return false;\n }\n if (filter.namePrefix) {\n if (!((_a = device.name) === null || _a === void 0 ? void 0 : _a.startsWith(filter.namePrefix))) {\n return false;\n }\n }\n if (!hasServiceConstraint) {\n return true;\n }\n const services = (_b = filter.services) !== null && _b !== void 0 ? _b : [];\n return services.every((service) => advertisedServices.has(normalizeUuid(service)));\n });\n}\nfunction createCharacteristicKey(deviceId, serviceUuid, characteristicUuid) {\n return `${deviceId}::${normalizeUuid(serviceUuid)}::${normalizeUuid(characteristicUuid)}`;\n}\nfunction normalizeUuid(value) {\n return canonicalUUID(value);\n}\nfunction canonicalUUID(value) {\n if (typeof value === 'number' && Number.isFinite(value)) {\n return `${value.toString(16).padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n const trimmed = String(value).trim().toLowerCase();\n if (trimmed in BLUETOOTH_SERVICE_UUID_ALIASES) {\n return `${BLUETOOTH_SERVICE_UUID_ALIASES[trimmed].toString(16).padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n if (/^0x[0-9a-f]+$/iu.test(trimmed)) {\n return `${trimmed.slice(2).padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n if (/^[0-9a-f]{4}$/iu.test(trimmed) || /^[0-9a-f]{8}$/iu.test(trimmed)) {\n return `${trimmed.padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n if (/^[0-9a-f]{32}$/iu.test(trimmed)) {\n return trimmed.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/u, '$1-$2-$3-$4-$5');\n }\n return trimmed;\n}\nfunction toDataView(value) {\n const bytes = value instanceof Uint8Array\n ? value\n : value instanceof DataView\n ? new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength))\n : ArrayBuffer.isView(value)\n ? new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength))\n : value instanceof ArrayBuffer\n ? new Uint8Array(value.slice(0))\n : Uint8Array.from(value !== null && value !== void 0 ? value : []);\n return new DataView(bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength));\n}\nfunction toUint8Array(value) {\n if (value instanceof Uint8Array) {\n return new Uint8Array(value);\n }\n if (value instanceof DataView) {\n return new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength));\n }\n if (ArrayBuffer.isView(value)) {\n return new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength));\n }\n if (value instanceof ArrayBuffer) {\n return new Uint8Array(value.slice(0));\n }\n return Uint8Array.from(value);\n}\nfunction createBluetoothError(name, message) {\n try {\n return new DOMException(message, name);\n }\n catch (_a) {\n const error = new Error(message);\n error.name = name;\n return error;\n }\n}\nfunction normalizeError(error) {\n if (error instanceof Error) {\n return error;\n }\n return new Error(String(error));\n}\nexport function installBluetoothLowEnergyShim(plugin, options = {}) {\n var _a, _b, _c;\n const root = ((_a = options.root) !== null && _a !== void 0 ? _a : globalThis);\n const isNativePlatform = (_b = options.isNativePlatform) !== null && _b !== void 0 ? _b : Capacitor.isNativePlatform();\n const isPluginAvailable = (_c = options.isPluginAvailable) !== null && _c !== void 0 ? _c : Capacitor.isPluginAvailable(PLUGIN_NAME);\n if (!isNativePlatform || !isPluginAvailable || !root.navigator || root.navigator.bluetooth) {\n return;\n }\n const shim = new NativeWebBluetoothShim(root, plugin);\n shim.install();\n}\n//# sourceMappingURL=shim.js.map","/**\n * Utility class for BLE operations.\n *\n * @since 1.0.0\n */\nexport class BluetoothLowEnergyUtils {\n /**\n * Convert a byte array to a hex string.\n *\n * @param bytes - The byte array to convert\n * @returns The hex string\n * @since 1.0.0\n * @example\n * ```typescript\n * const hex = BluetoothLowEnergyUtils.convertBytesToHex([0x48, 0x65, 0x6c, 0x6c, 0x6f]);\n * console.log(hex); // \"48656c6c6f\"\n * ```\n */\n static convertBytesToHex(bytes) {\n return bytes.map((b) => b.toString(16).padStart(2, '0')).join('');\n }\n /**\n * Convert a hex string to a byte array.\n *\n * @param hex - The hex string to convert\n * @returns The byte array\n * @since 1.0.0\n * @example\n * ```typescript\n * const bytes = BluetoothLowEnergyUtils.convertHexToBytes(\"48656c6c6f\");\n * console.log(bytes); // [72, 101, 108, 108, 111]\n * ```\n */\n static convertHexToBytes(hex) {\n const bytes = [];\n for (let i = 0; i < hex.length; i += 2) {\n bytes.push(parseInt(hex.substr(i, 2), 16));\n }\n return bytes;\n }\n /**\n * Convert a string to a byte array (UTF-8).\n *\n * @param str - The string to convert\n * @returns The byte array\n * @since 1.0.0\n * @example\n * ```typescript\n * const bytes = BluetoothLowEnergyUtils.convertStringToBytes(\"Hello\");\n * console.log(bytes); // [72, 101, 108, 108, 111]\n * ```\n */\n static convertStringToBytes(str) {\n return Array.from(new TextEncoder().encode(str));\n }\n /**\n * Convert a byte array to a string (UTF-8).\n *\n * @param bytes - The byte array to convert\n * @returns The string\n * @since 1.0.0\n * @example\n * ```typescript\n * const str = BluetoothLowEnergyUtils.convertBytesToString([72, 101, 108, 108, 111]);\n * console.log(str); // \"Hello\"\n * ```\n */\n static convertBytesToString(bytes) {\n return new TextDecoder().decode(new Uint8Array(bytes));\n }\n}\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nimport { installBluetoothLowEnergyShim } from './shim';\nconst BluetoothLowEnergy = registerPlugin('BluetoothLowEnergy', {\n web: () => import('./web').then((module) => new module.BluetoothLowEnergyWeb()),\n});\nBluetoothLowEnergy.shimWebBluetooth = () => {\n installBluetoothLowEnergyShim(BluetoothLowEnergy);\n};\nexport * from './definitions';\nexport { BluetoothLowEnergy };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BluetoothLowEnergyWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.devices = new Map();\n this.services = new Map();\n this.characteristicListeners = new Map();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async initialize(_options) {\n if (!navigator.bluetooth) {\n throw new Error('Web Bluetooth API is not available');\n }\n }\n shimWebBluetooth() {\n // The browser already provides navigator.bluetooth when available.\n }\n async isAvailable() {\n if (!navigator.bluetooth) {\n return { available: false };\n }\n try {\n const available = await navigator.bluetooth.getAvailability();\n return { available };\n }\n catch (_a) {\n return { available: false };\n }\n }\n async isEnabled() {\n const { available } = await this.isAvailable();\n return { enabled: available };\n }\n async isLocationEnabled() {\n // Location is not relevant for Web Bluetooth\n return { enabled: true };\n }\n async openAppSettings() {\n throw new Error('openAppSettings is not supported on web');\n }\n async openBluetoothSettings() {\n throw new Error('openBluetoothSettings is not supported on web');\n }\n async openLocationSettings() {\n throw new Error('openLocationSettings is not supported on web');\n }\n async checkPermissions() {\n // Web Bluetooth handles permissions through requestDevice\n return {\n bluetooth: 'prompt',\n location: 'granted',\n };\n }\n async requestPermissions() {\n // Web Bluetooth handles permissions through requestDevice\n return {\n bluetooth: 'granted',\n location: 'granted',\n };\n }\n async startScan(options) {\n var _a;\n if (!navigator.bluetooth) {\n throw new Error('Web Bluetooth API is not available');\n }\n const requestOptions = {};\n if ((options === null || options === void 0 ? void 0 : options.services) && options.services.length > 0) {\n requestOptions.filters = [{ services: options.services }];\n }\n else {\n requestOptions.acceptAllDevices = true;\n }\n if (options === null || options === void 0 ? void 0 : options.services) {\n requestOptions.optionalServices = options.services;\n }\n try {\n const device = await navigator.bluetooth.requestDevice(requestOptions);\n const bleDevice = {\n deviceId: device.id,\n name: (_a = device.name) !== null && _a !== void 0 ? _a : null,\n };\n this.devices.set(device.id, device);\n this.notifyListeners('deviceScanned', { device: bleDevice });\n }\n catch (error) {\n if (error instanceof Error && error.name === 'NotFoundError') {\n // User cancelled the device picker\n return;\n }\n throw error;\n }\n }\n async stopScan() {\n // Web Bluetooth doesn't have a continuous scan - it uses a picker\n // Nothing to do here\n }\n async connect(options) {\n const device = this.devices.get(options.deviceId);\n if (!device) {\n throw new Error(`Device ${options.deviceId} not found`);\n }\n if (!device.gatt) {\n throw new Error(`Device ${options.deviceId} does not support GATT`);\n }\n await device.gatt.connect();\n this.notifyListeners('deviceConnected', { deviceId: options.deviceId });\n }\n async disconnect(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!device) {\n throw new Error(`Device ${options.deviceId} not found`);\n }\n if ((_a = device.gatt) === null || _a === void 0 ? void 0 : _a.connected) {\n device.gatt.disconnect();\n }\n this.notifyListeners('deviceDisconnected', { deviceId: options.deviceId });\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async createBond(_options) {\n throw new Error('createBond is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async isBonded(_options) {\n throw new Error('isBonded is not supported on web');\n }\n async discoverServices(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const gattServices = await device.gatt.getPrimaryServices();\n const services = [];\n for (const gattService of gattServices) {\n const characteristics = await gattService.getCharacteristics();\n const bleCharacteristics = await Promise.all(characteristics.map(async (char) => {\n const descriptors = await char.getDescriptors();\n return {\n uuid: char.uuid,\n properties: {\n broadcast: char.properties.broadcast,\n read: char.properties.read,\n writeWithoutResponse: char.properties.writeWithoutResponse,\n write: char.properties.write,\n notify: char.properties.notify,\n indicate: char.properties.indicate,\n authenticatedSignedWrites: char.properties.authenticatedSignedWrites,\n extendedProperties: false,\n },\n descriptors: descriptors.map((desc) => ({ uuid: desc.uuid })),\n };\n }));\n services.push({\n uuid: gattService.uuid,\n characteristics: bleCharacteristics,\n });\n }\n this.services.set(options.deviceId, services);\n }\n async getServices(options) {\n const services = this.services.get(options.deviceId);\n if (!services) {\n return { services: [] };\n }\n return { services };\n }\n async getConnectedDevices() {\n var _a, _b;\n const devices = [];\n for (const [deviceId, device] of this.devices) {\n if ((_a = device.gatt) === null || _a === void 0 ? void 0 : _a.connected) {\n devices.push({\n deviceId,\n name: (_b = device.name) !== null && _b !== void 0 ? _b : null,\n });\n }\n }\n return { devices };\n }\n async readCharacteristic(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const dataView = await characteristic.readValue();\n const value = [];\n for (let i = 0; i < dataView.byteLength; i++) {\n value.push(dataView.getUint8(i));\n }\n return { value };\n }\n async writeCharacteristic(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const data = new Uint8Array(options.value);\n if (options.type === 'withoutResponse') {\n await characteristic.writeValueWithoutResponse(data);\n }\n else {\n await characteristic.writeValueWithResponse(data);\n }\n }\n async startCharacteristicNotifications(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const key = `${options.deviceId}-${options.service}-${options.characteristic}`;\n const listener = (event) => {\n const dataView = event.target.value;\n if (!dataView)\n return;\n const value = [];\n for (let i = 0; i < dataView.byteLength; i++) {\n value.push(dataView.getUint8(i));\n }\n this.notifyListeners('characteristicChanged', {\n deviceId: options.deviceId,\n service: options.service,\n characteristic: options.characteristic,\n value,\n });\n };\n characteristic.addEventListener('characteristicvaluechanged', listener);\n this.characteristicListeners.set(key, listener);\n await characteristic.startNotifications();\n }\n async stopCharacteristicNotifications(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const key = `${options.deviceId}-${options.service}-${options.characteristic}`;\n const listener = this.characteristicListeners.get(key);\n if (listener) {\n characteristic.removeEventListener('characteristicvaluechanged', listener);\n this.characteristicListeners.delete(key);\n }\n await characteristic.stopNotifications();\n }\n async readDescriptor(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const descriptors = await characteristic.getDescriptors();\n const descriptor = descriptors.find((d) => d.uuid === options.descriptor);\n if (!descriptor) {\n throw new Error(`Descriptor ${options.descriptor} not found`);\n }\n const dataView = await descriptor.readValue();\n const value = [];\n for (let i = 0; i < dataView.byteLength; i++) {\n value.push(dataView.getUint8(i));\n }\n return { value };\n }\n async writeDescriptor(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const descriptors = await characteristic.getDescriptors();\n const descriptor = descriptors.find((d) => d.uuid === options.descriptor);\n if (!descriptor) {\n throw new Error(`Descriptor ${options.descriptor} not found`);\n }\n const data = new Uint8Array(options.value);\n await descriptor.writeValue(data);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async readRssi(_options) {\n throw new Error('readRssi is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async requestMtu(_options) {\n throw new Error('requestMtu is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async requestConnectionPriority(_options) {\n throw new Error('requestConnectionPriority is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async startAdvertising(_options) {\n throw new Error('startAdvertising is not supported on web');\n }\n async stopAdvertising() {\n throw new Error('stopAdvertising is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async startForegroundService(_options) {\n throw new Error('startForegroundService is not supported on web');\n }\n async stopForegroundService() {\n throw new Error('stopForegroundService is not supported on web');\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["Capacitor","registerPlugin","WebPlugin"],"mappings":";;;;AACA,MAAM,WAAW,GAAG,oBAAoB;AACxC,MAAM,oBAAoB,GAAG,KAAK;AAClC,MAAM,0BAA0B,GAAG,8BAA8B;AACjE,MAAM,8BAA8B,GAAG;AACvC,IAAI,kBAAkB,EAAE,MAAM;AAC9B,IAAI,aAAa,EAAE,MAAM;AACzB,IAAI,eAAe,EAAE,MAAM;AAC3B,IAAI,aAAa,EAAE,MAAM;AACzB,IAAI,cAAc,EAAE,MAAM;AAC1B,IAAI,gBAAgB,EAAE,MAAM;AAC5B,IAAI,eAAe,EAAE,MAAM;AAC3B,IAAI,6BAA6B,EAAE,MAAM;AACzC,IAAI,sCAAsC,EAAE,MAAM;AAClD,IAAI,YAAY,EAAE,MAAM;AACxB,IAAI,aAAa,EAAE,MAAM;AACzB,IAAI,yBAAyB,EAAE,MAAM;AACrC,IAAI,kBAAkB,EAAE,MAAM;AAC9B,IAAI,WAAW,EAAE,MAAM;AACvB,IAAI,uBAAuB,EAAE,MAAM;AACnC,IAAI,qBAAqB,EAAE,MAAM;AACjC,IAAI,eAAe,EAAE,MAAM;AAC3B,IAAI,cAAc,EAAE,MAAM;AAC1B,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,6BAA6B,EAAE,MAAM;AACzC,IAAI,gCAAg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gD,CAAC;AACzE,IAAI;AACJ,IAAI,MAAM,qBAAqB,GAAG;AAClC,QAAQ,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC;AACxE,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/shim.js","esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["import { Capacitor } from '@capacitor/core';\nconst PLUGIN_NAME = 'BluetoothLowEnergy';\nconst DEFAULT_SCAN_TIMEOUT = 15000;\nconst BLUETOOTH_BASE_UUID_SUFFIX = '-0000-1000-8000-00805f9b34fb';\nconst BLUETOOTH_SERVICE_UUID_ALIASES = {\n alert_notification: 0x1811,\n automation_io: 0x1815,\n battery_service: 0x180f,\n binary_sensor: 0x183b,\n blood_pressure: 0x1810,\n body_composition: 0x181b,\n bond_management: 0x181e,\n continuous_glucose_monitoring: 0x181f,\n coordinated_set_identification_service: 0x1846,\n current_time: 0x1805,\n cycling_power: 0x1818,\n cycling_speed_and_cadence: 0x1816,\n device_information: 0x180a,\n device_time: 0x1847,\n emergency_configuration: 0x183c,\n environmental_sensing: 0x181a,\n fitness_machine: 0x1826,\n generic_access: 0x1800,\n generic_attribute: 0x1801,\n generic_media_control_service: 0x1849,\n generic_telephone_bearer_service: 0x184c,\n glucose: 0x1808,\n health_thermometer: 0x1809,\n heart_rate: 0x180d,\n http_proxy: 0x1823,\n human_interface_device: 0x1812,\n immediate_alert: 0x1802,\n indoor_positioning: 0x1821,\n insulin_delivery: 0x183a,\n internet_protocol_support: 0x1820,\n link_loss: 0x1803,\n location_and_navigation: 0x1819,\n media_control_service: 0x1848,\n mesh_provisioning: 0x1827,\n mesh_proxy: 0x1828,\n microphone_control: 0x184d,\n next_dst_change: 0x1807,\n object_transfer: 0x1825,\n phone_alert_status: 0x180e,\n physical_activity_monitor: 0x183e,\n pulse_oximeter: 0x1822,\n reconnection_configuration: 0x1829,\n reference_time_update: 0x1806,\n running_speed_and_cadence: 0x1814,\n scan_parameters: 0x1813,\n transport_discovery: 0x1824,\n tx_power: 0x1804,\n user_data: 0x181c,\n volume_control: 0x1844,\n volume_offset_control: 0x1845,\n weight_scale: 0x181d,\n};\nclass ShimEventEmitter {\n constructor() {\n this.listeners = new Map();\n }\n addEventListener(type, listener) {\n var _a;\n if (!type) {\n return;\n }\n const typeListeners = (_a = this.listeners.get(type)) !== null && _a !== void 0 ? _a : new Set();\n typeListeners.add(listener);\n this.listeners.set(type, typeListeners);\n }\n removeEventListener(type, listener) {\n const typeListeners = this.listeners.get(type);\n if (!typeListeners) {\n return;\n }\n typeListeners.delete(listener);\n if (typeListeners.size === 0) {\n this.listeners.delete(type);\n }\n }\n dispatchShimEvent(type, target) {\n const event = { type, target };\n const typeListeners = this.listeners.get(type);\n typeListeners === null || typeListeners === void 0 ? void 0 : typeListeners.forEach((listener) => {\n listener(event);\n });\n const handler = target[`on${type}`];\n if (typeof handler === 'function') {\n handler(event);\n }\n }\n}\nclass NativeWebBluetoothShim {\n constructor(root, plugin) {\n this.root = root;\n this.plugin = plugin;\n this.initializedPromise = null;\n this.listenersPromise = null;\n this.pendingRequest = null;\n this.deviceCache = new Map();\n this.characteristicCache = new Map();\n this.exposedDeviceIds = new Set();\n this.listenerHandles = [];\n }\n install() {\n var _a;\n var _b;\n if (this.root.__capgoBluetoothLowEnergyShimInstalled || !this.root.navigator || this.root.navigator.bluetooth) {\n return;\n }\n const bluetooth = new BluetoothShimFacade(this);\n Object.defineProperty(this.root.navigator, 'bluetooth', {\n configurable: true,\n enumerable: true,\n value: bluetooth,\n writable: false,\n });\n this.root.BluetoothDevice = BluetoothDeviceShim;\n this.root.BluetoothRemoteGATTServer = BluetoothRemoteGATTServerShim;\n this.root.BluetoothRemoteGATTService = BluetoothRemoteGATTServiceShim;\n this.root.BluetoothRemoteGATTCharacteristic = BluetoothRemoteGATTCharacteristicShim;\n this.root.BluetoothRemoteGATTDescriptor = BluetoothRemoteGATTDescriptorShim;\n (_a = (_b = this.root).BluetoothUUID) !== null && _a !== void 0 ? _a : (_b.BluetoothUUID = {\n canonicalUUID,\n getService: canonicalUUID,\n getCharacteristic: canonicalUUID,\n getDescriptor: canonicalUUID,\n });\n this.root.__capgoBluetoothLowEnergyShimInstalled = true;\n }\n async getAvailability() {\n await this.ensureInitialized();\n const { available } = await this.plugin.isAvailable();\n return available === true;\n }\n async getDevices() {\n await this.ensureInitialized();\n await this.ensureListeners();\n const { devices } = await this.plugin.getConnectedDevices();\n devices.forEach((deviceData) => {\n const device = this.getOrCreateDevice(deviceData);\n device.gatt.setConnected(true);\n this.exposedDeviceIds.add(device.id);\n });\n return Array.from(this.exposedDeviceIds)\n .map((deviceId) => this.deviceCache.get(deviceId))\n .filter((device) => typeof device !== 'undefined');\n }\n async requestDevice(options) {\n var _a;\n if (!options || (options.acceptAllDevices !== true && (!options.filters || options.filters.length === 0))) {\n throw new TypeError('requestDevice requires filters or acceptAllDevices: true.');\n }\n if (options.acceptAllDevices !== true &&\n ((_a = options.filters) === null || _a === void 0 ? void 0 : _a.some((filter) => (!filter.services || filter.services.length === 0) &&\n typeof filter.name !== 'string' &&\n typeof filter.namePrefix !== 'string'))) {\n throw new TypeError('requestDevice filters must specify a name, namePrefix, or at least one service.');\n }\n if (this.pendingRequest) {\n throw createBluetoothError('InvalidStateError', 'A Bluetooth request is already in progress.');\n }\n await this.ensureListeners();\n await this.ensureScanPrerequisites();\n await this.stopScanSilently();\n return new Promise((resolve, reject) => {\n const timeoutId = setTimeout(() => {\n if (!this.pendingRequest) {\n return;\n }\n this.pendingRequest = null;\n void this.stopScanSilently();\n reject(createBluetoothError('NotFoundError', 'No matching Bluetooth device was found.'));\n }, DEFAULT_SCAN_TIMEOUT);\n this.pendingRequest = {\n options,\n reject,\n resolve: (device) => {\n device.gatt.setConnected(false);\n resolve(device);\n },\n timeoutId,\n };\n void this.plugin\n .startScan({\n allowDuplicates: true,\n services: mergeRequestedServices(options.filters),\n timeout: DEFAULT_SCAN_TIMEOUT,\n })\n .catch((error) => {\n if (!this.pendingRequest) {\n return;\n }\n clearTimeout(timeoutId);\n this.pendingRequest = null;\n reject(normalizeError(error));\n });\n });\n }\n async connectDevice(device) {\n await this.ensureInitialized();\n await this.ensureListeners();\n await this.plugin.connect({ deviceId: device.id });\n device.gatt.setConnected(true);\n device.setServices(null);\n return device.gatt;\n }\n disconnectDevice(device) {\n if (!device.gatt.connected) {\n return;\n }\n device.gatt.setConnected(false);\n device.setServices(null);\n void this.plugin.disconnect({ deviceId: device.id }).catch(() => undefined);\n }\n async getPrimaryServices(device, serviceUuid) {\n const services = await this.ensureServices(device);\n const mapped = services.map((serviceData) => new BluetoothRemoteGATTServiceShim(this, device, serviceData));\n if (typeof serviceUuid === 'undefined') {\n return mapped;\n }\n const normalized = normalizeUuid(serviceUuid);\n return mapped.filter((service) => normalizeUuid(service.uuid) === normalized);\n }\n async getPrimaryService(device, serviceUuid) {\n const services = await this.getPrimaryServices(device, serviceUuid);\n const service = services[0];\n if (!service) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth service was not found.');\n }\n return service;\n }\n async getCharacteristics(device, serviceUuid, characteristicUuid) {\n const service = await this.findService(device, serviceUuid);\n const characteristics = service.characteristics.map((characteristicData) => {\n const characteristic = this.getOrCreateCharacteristic(device, service.uuid, characteristicData);\n characteristic.service = new BluetoothRemoteGATTServiceShim(this, device, service);\n return characteristic;\n });\n if (typeof characteristicUuid === 'undefined') {\n return characteristics;\n }\n const normalizedCharacteristicUuid = normalizeUuid(characteristicUuid);\n return characteristics.filter((characteristic) => normalizeUuid(characteristic.uuid) === normalizedCharacteristicUuid);\n }\n async getCharacteristic(device, serviceUuid, characteristicUuid) {\n const { characteristic, service } = await this.findCharacteristic(device, serviceUuid, characteristicUuid);\n const shim = this.getOrCreateCharacteristic(device, service.uuid, characteristic);\n shim.service = new BluetoothRemoteGATTServiceShim(this, device, service);\n return shim;\n }\n async getDescriptors(device, serviceUuid, characteristicUuid, descriptorUuid) {\n const { characteristic } = await this.findCharacteristic(device, serviceUuid, characteristicUuid);\n const normalizedDescriptorUuid = descriptorUuid ? normalizeUuid(descriptorUuid) : null;\n return characteristic.descriptors\n .filter((descriptorData) => {\n if (!normalizedDescriptorUuid) {\n return true;\n }\n return normalizeUuid(descriptorData.uuid) === normalizedDescriptorUuid;\n })\n .map((descriptorData) => {\n const descriptor = new BluetoothRemoteGATTDescriptorShim(this, device, normalizeUuid(serviceUuid), normalizeUuid(characteristicUuid), descriptorData);\n return descriptor;\n });\n }\n async getDescriptor(device, serviceUuid, characteristicUuid, descriptorUuid) {\n const descriptor = (await this.getDescriptors(device, serviceUuid, characteristicUuid, descriptorUuid))[0];\n if (!descriptor) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth descriptor was not found.');\n }\n return descriptor;\n }\n async readCharacteristic(device, serviceUuid, characteristicUuid) {\n const { value } = await this.plugin.readCharacteristic({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n return toDataView(value);\n }\n async writeCharacteristic(device, serviceUuid, characteristicUuid, value, type) {\n await this.plugin.writeCharacteristic({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n type,\n value: Array.from(toUint8Array(value)),\n });\n }\n async startNotifications(device, serviceUuid, characteristicUuid) {\n await this.ensureListeners();\n await this.plugin.startCharacteristicNotifications({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n }\n async stopNotifications(device, serviceUuid, characteristicUuid) {\n await this.plugin.stopCharacteristicNotifications({\n characteristic: normalizeUuid(characteristicUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n }\n async readDescriptor(device, serviceUuid, characteristicUuid, descriptorUuid) {\n const { value } = await this.plugin.readDescriptor({\n characteristic: normalizeUuid(characteristicUuid),\n descriptor: normalizeUuid(descriptorUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n });\n return toDataView(value);\n }\n async writeDescriptor(device, serviceUuid, characteristicUuid, descriptorUuid, value) {\n await this.plugin.writeDescriptor({\n characteristic: normalizeUuid(characteristicUuid),\n descriptor: normalizeUuid(descriptorUuid),\n deviceId: device.id,\n service: normalizeUuid(serviceUuid),\n value: Array.from(toUint8Array(value)),\n });\n }\n async ensureInitialized() {\n if (!this.initializedPromise) {\n this.initializedPromise = this.plugin.initialize({ mode: 'central' }).catch((error) => {\n this.initializedPromise = null;\n throw normalizeError(error);\n });\n }\n await this.initializedPromise;\n }\n async ensureListeners() {\n if (!this.listenersPromise) {\n this.listenersPromise = Promise.all([\n this.plugin.addListener('deviceScanned', (event) => this.handleDeviceScanned(event)),\n this.plugin.addListener('deviceDisconnected', (event) => this.handleDeviceDisconnected(event)),\n this.plugin.addListener('characteristicChanged', (event) => this.handleCharacteristicChanged(event)),\n ]).then((handles) => {\n this.listenerHandles.push(...handles);\n });\n }\n await this.listenersPromise;\n }\n handleDeviceScanned(event) {\n if (!this.pendingRequest || !event.device) {\n return;\n }\n if (!matchesRequestOptions(event.device, this.pendingRequest.options)) {\n return;\n }\n const device = this.getOrCreateDevice(event.device);\n this.exposedDeviceIds.add(device.id);\n const request = this.pendingRequest;\n this.pendingRequest = null;\n clearTimeout(request.timeoutId);\n void this.stopScanSilently();\n request.resolve(device);\n }\n handleDeviceDisconnected(event) {\n const device = this.deviceCache.get(event.deviceId);\n device === null || device === void 0 ? void 0 : device.notifyDisconnected();\n }\n handleCharacteristicChanged(event) {\n const key = createCharacteristicKey(event.deviceId, event.service, event.characteristic);\n const characteristic = this.characteristicCache.get(key);\n characteristic === null || characteristic === void 0 ? void 0 : characteristic.handleValueChange(event.value);\n }\n async ensureScanPrerequisites() {\n if (!(await this.getAvailability())) {\n throw createBluetoothError('NotSupportedError', 'Bluetooth Low Energy is not available on this device.');\n }\n const { enabled } = await this.plugin.isEnabled();\n if (!enabled) {\n throw createBluetoothError('NotFoundError', 'Bluetooth is disabled on this device.');\n }\n const permissions = await this.plugin.requestPermissions();\n if (permissions.bluetooth === 'denied' || permissions.location === 'denied') {\n throw createBluetoothError('NotAllowedError', 'Bluetooth permissions were denied.');\n }\n const location = await this.plugin.isLocationEnabled();\n if (location.enabled === false) {\n throw createBluetoothError('NotFoundError', 'Location services must be enabled for Bluetooth scanning.');\n }\n }\n async ensureServices(device) {\n const cachedServices = device.getServices();\n if (cachedServices) {\n return cachedServices;\n }\n if (!device.gatt.connected) {\n throw createBluetoothError('NetworkError', 'Device is not connected.');\n }\n await this.plugin.discoverServices({ deviceId: device.id });\n const { services } = await this.plugin.getServices({ deviceId: device.id });\n device.setServices(services);\n return services;\n }\n async findService(device, serviceUuid) {\n const services = await this.ensureServices(device);\n const normalized = normalizeUuid(serviceUuid);\n const service = services.find((entry) => normalizeUuid(entry.uuid) === normalized);\n if (!service) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth service was not found.');\n }\n return service;\n }\n async findCharacteristic(device, serviceUuid, characteristicUuid) {\n const service = await this.findService(device, serviceUuid);\n const normalized = normalizeUuid(characteristicUuid);\n const characteristic = service.characteristics.find((entry) => normalizeUuid(entry.uuid) === normalized);\n if (!characteristic) {\n throw createBluetoothError('NotFoundError', 'Requested Bluetooth characteristic was not found.');\n }\n return { characteristic, service };\n }\n getOrCreateDevice(deviceData) {\n const existingDevice = this.deviceCache.get(deviceData.deviceId);\n if (existingDevice) {\n existingDevice.updateMetadata(deviceData);\n return existingDevice;\n }\n const device = new BluetoothDeviceShim(this, deviceData);\n this.deviceCache.set(deviceData.deviceId, device);\n return device;\n }\n getOrCreateCharacteristic(device, serviceUuid, characteristicData) {\n const key = createCharacteristicKey(device.id, serviceUuid, characteristicData.uuid);\n const existingCharacteristic = this.characteristicCache.get(key);\n if (existingCharacteristic) {\n existingCharacteristic.update(characteristicData);\n return existingCharacteristic;\n }\n const characteristic = new BluetoothRemoteGATTCharacteristicShim(this, device, serviceUuid, characteristicData);\n this.characteristicCache.set(key, characteristic);\n return characteristic;\n }\n async stopScanSilently() {\n try {\n await this.plugin.stopScan();\n }\n catch (_a) {\n // Ignore stale scan errors.\n }\n }\n}\nclass BluetoothDeviceShim extends ShimEventEmitter {\n constructor(shim, deviceData) {\n super();\n this.services = null;\n this.id = deviceData.deviceId;\n this.name = deviceData.name;\n this.gatt = new BluetoothRemoteGATTServerShim(shim, this);\n this.updateMetadata(deviceData);\n }\n updateMetadata(deviceData) {\n this.name = deviceData.name;\n this.rssi = deviceData.rssi;\n this.manufacturerData = deviceData.manufacturerData;\n this.serviceUuids = deviceData.serviceUuids;\n }\n getServices() {\n return this.services;\n }\n setServices(services) {\n this.services = services;\n }\n notifyDisconnected() {\n this.gatt.setConnected(false);\n this.services = null;\n this.dispatchShimEvent('gattserverdisconnected', this);\n }\n async watchAdvertisements() {\n throw createBluetoothError('NotSupportedError', 'watchAdvertisements is not implemented by the Capacitor shim.');\n }\n}\nclass BluetoothRemoteGATTServerShim {\n constructor(shim, device) {\n this.shim = shim;\n this.device = device;\n this.connected = false;\n }\n setConnected(connected) {\n this.connected = connected;\n }\n async connect() {\n return this.shim.connectDevice(this.device);\n }\n disconnect() {\n this.shim.disconnectDevice(this.device);\n }\n async getPrimaryServices(serviceUuid) {\n return this.shim.getPrimaryServices(this.device, serviceUuid);\n }\n async getPrimaryService(serviceUuid) {\n return this.shim.getPrimaryService(this.device, serviceUuid);\n }\n}\nclass BluetoothRemoteGATTServiceShim {\n constructor(shim, device, serviceData) {\n this.shim = shim;\n this.device = device;\n this.serviceData = serviceData;\n this.isPrimary = true;\n }\n get uuid() {\n return this.serviceData.uuid;\n }\n async getCharacteristics(characteristicUuid) {\n return this.shim.getCharacteristics(this.device, this.uuid, characteristicUuid);\n }\n async getCharacteristic(characteristicUuid) {\n return this.shim.getCharacteristic(this.device, this.uuid, characteristicUuid);\n }\n}\nclass BluetoothRemoteGATTCharacteristicShim extends ShimEventEmitter {\n constructor(shim, device, serviceUuid, characteristicData) {\n super();\n this.shim = shim;\n this.device = device;\n this.serviceUuid = serviceUuid;\n this.characteristicData = characteristicData;\n this.service = null;\n this.value = null;\n }\n get uuid() {\n return this.characteristicData.uuid;\n }\n get properties() {\n return this.characteristicData.properties;\n }\n update(characteristicData) {\n this.characteristicData = characteristicData;\n }\n async getDescriptors(descriptorUuid) {\n const descriptors = await this.shim.getDescriptors(this.device, this.serviceUuid, this.uuid, descriptorUuid);\n descriptors.forEach((descriptor) => {\n descriptor.characteristic = this;\n });\n return descriptors;\n }\n async getDescriptor(descriptorUuid) {\n const descriptor = await this.shim.getDescriptor(this.device, this.serviceUuid, this.uuid, descriptorUuid);\n descriptor.characteristic = this;\n return descriptor;\n }\n async readValue() {\n this.value = await this.shim.readCharacteristic(this.device, this.serviceUuid, this.uuid);\n return this.value;\n }\n async writeValue(value) {\n await this.writeValueWithResponse(value);\n }\n async writeValueWithResponse(value) {\n await this.shim.writeCharacteristic(this.device, this.serviceUuid, this.uuid, value, 'withResponse');\n }\n async writeValueWithoutResponse(value) {\n await this.shim.writeCharacteristic(this.device, this.serviceUuid, this.uuid, value, 'withoutResponse');\n }\n async startNotifications() {\n await this.shim.startNotifications(this.device, this.serviceUuid, this.uuid);\n return this;\n }\n async stopNotifications() {\n await this.shim.stopNotifications(this.device, this.serviceUuid, this.uuid);\n return this;\n }\n handleValueChange(value) {\n this.value = toDataView(value);\n this.dispatchShimEvent('characteristicvaluechanged', this);\n }\n}\nclass BluetoothRemoteGATTDescriptorShim {\n constructor(shim, device, serviceUuid, characteristicUuid, descriptorData) {\n this.shim = shim;\n this.device = device;\n this.serviceUuid = serviceUuid;\n this.characteristicUuid = characteristicUuid;\n this.descriptorData = descriptorData;\n this.characteristic = null;\n this.value = null;\n }\n get uuid() {\n return this.descriptorData.uuid;\n }\n async readValue() {\n this.value = await this.shim.readDescriptor(this.device, this.serviceUuid, this.characteristicUuid, this.uuid);\n return this.value;\n }\n async writeValue(value) {\n await this.shim.writeDescriptor(this.device, this.serviceUuid, this.characteristicUuid, this.uuid, value);\n }\n}\nclass BluetoothShimFacade extends ShimEventEmitter {\n constructor(shim) {\n super();\n this.shim = shim;\n }\n async getAvailability() {\n return this.shim.getAvailability();\n }\n async getDevices() {\n return this.shim.getDevices();\n }\n async requestDevice(options) {\n return this.shim.requestDevice(options);\n }\n}\nfunction mergeRequestedServices(filters) {\n if (!filters || filters.some((filter) => !filter.services || filter.services.length === 0)) {\n return [];\n }\n const services = new Set();\n filters.forEach((filter) => {\n var _a;\n (_a = filter.services) === null || _a === void 0 ? void 0 : _a.forEach((service) => {\n services.add(normalizeUuid(service));\n });\n });\n return Array.from(services);\n}\nfunction matchesRequestOptions(device, options) {\n var _a;\n if (options.acceptAllDevices) {\n return true;\n }\n if (!options.filters || options.filters.length === 0) {\n return false;\n }\n const advertisedServices = new Set(((_a = device.serviceUuids) !== null && _a !== void 0 ? _a : []).map((serviceUuid) => normalizeUuid(serviceUuid)));\n return options.filters.some((filter) => {\n var _a, _b;\n const hasServiceConstraint = Boolean(filter.services && filter.services.length > 0);\n const hasNameConstraint = typeof filter.name === 'string';\n const hasNamePrefixConstraint = typeof filter.namePrefix === 'string';\n if (!hasServiceConstraint && !hasNameConstraint && !hasNamePrefixConstraint) {\n return false;\n }\n if (filter.name && device.name !== filter.name) {\n return false;\n }\n if (filter.namePrefix) {\n if (!((_a = device.name) === null || _a === void 0 ? void 0 : _a.startsWith(filter.namePrefix))) {\n return false;\n }\n }\n if (!hasServiceConstraint) {\n return true;\n }\n const services = (_b = filter.services) !== null && _b !== void 0 ? _b : [];\n return services.every((service) => advertisedServices.has(normalizeUuid(service)));\n });\n}\nfunction createCharacteristicKey(deviceId, serviceUuid, characteristicUuid) {\n return `${deviceId}::${normalizeUuid(serviceUuid)}::${normalizeUuid(characteristicUuid)}`;\n}\nfunction normalizeUuid(value) {\n return canonicalUUID(value);\n}\nfunction canonicalUUID(value) {\n if (typeof value === 'number' && Number.isFinite(value)) {\n return `${value.toString(16).padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n const trimmed = String(value).trim().toLowerCase();\n if (trimmed in BLUETOOTH_SERVICE_UUID_ALIASES) {\n return `${BLUETOOTH_SERVICE_UUID_ALIASES[trimmed].toString(16).padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n if (/^0x[0-9a-f]+$/iu.test(trimmed)) {\n return `${trimmed.slice(2).padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n if (/^[0-9a-f]{4}$/iu.test(trimmed) || /^[0-9a-f]{8}$/iu.test(trimmed)) {\n return `${trimmed.padStart(8, '0')}${BLUETOOTH_BASE_UUID_SUFFIX}`;\n }\n if (/^[0-9a-f]{32}$/iu.test(trimmed)) {\n return trimmed.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/u, '$1-$2-$3-$4-$5');\n }\n return trimmed;\n}\nfunction toDataView(value) {\n const bytes = value instanceof Uint8Array\n ? value\n : value instanceof DataView\n ? new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength))\n : ArrayBuffer.isView(value)\n ? new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength))\n : value instanceof ArrayBuffer\n ? new Uint8Array(value.slice(0))\n : Uint8Array.from(value !== null && value !== void 0 ? value : []);\n return new DataView(bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength));\n}\nfunction toUint8Array(value) {\n if (value instanceof Uint8Array) {\n return new Uint8Array(value);\n }\n if (value instanceof DataView) {\n return new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength));\n }\n if (ArrayBuffer.isView(value)) {\n return new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength));\n }\n if (value instanceof ArrayBuffer) {\n return new Uint8Array(value.slice(0));\n }\n return Uint8Array.from(value);\n}\nfunction createBluetoothError(name, message) {\n try {\n return new DOMException(message, name);\n }\n catch (_a) {\n const error = new Error(message);\n error.name = name;\n return error;\n }\n}\nfunction normalizeError(error) {\n if (error instanceof Error) {\n return error;\n }\n return new Error(String(error));\n}\nexport function installBluetoothLowEnergyShim(plugin, options = {}) {\n var _a, _b, _c;\n const root = ((_a = options.root) !== null && _a !== void 0 ? _a : globalThis);\n const isNativePlatform = (_b = options.isNativePlatform) !== null && _b !== void 0 ? _b : Capacitor.isNativePlatform();\n const isPluginAvailable = (_c = options.isPluginAvailable) !== null && _c !== void 0 ? _c : Capacitor.isPluginAvailable(PLUGIN_NAME);\n if (!isNativePlatform || !isPluginAvailable || !root.navigator || root.navigator.bluetooth) {\n return;\n }\n const shim = new NativeWebBluetoothShim(root, plugin);\n shim.install();\n}\n//# sourceMappingURL=shim.js.map","export class BluetoothLowEnergyUtils {\n /**\n * Convert a byte array to a hex string.\n *\n * @param bytes - The byte array to convert\n * @returns The hex string\n * @since 1.0.0\n * @example\n * ```typescript\n * const hex = BluetoothLowEnergyUtils.convertBytesToHex([0x48, 0x65, 0x6c, 0x6c, 0x6f]);\n * console.log(hex); // \"48656c6c6f\"\n * ```\n */\n static convertBytesToHex(bytes) {\n return bytes.map((b) => b.toString(16).padStart(2, '0')).join('');\n }\n /**\n * Convert a hex string to a byte array.\n *\n * @param hex - The hex string to convert\n * @returns The byte array\n * @since 1.0.0\n * @example\n * ```typescript\n * const bytes = BluetoothLowEnergyUtils.convertHexToBytes(\"48656c6c6f\");\n * console.log(bytes); // [72, 101, 108, 108, 111]\n * ```\n */\n static convertHexToBytes(hex) {\n const bytes = [];\n for (let i = 0; i < hex.length; i += 2) {\n bytes.push(parseInt(hex.substr(i, 2), 16));\n }\n return bytes;\n }\n /**\n * Convert a string to a byte array (UTF-8).\n *\n * @param str - The string to convert\n * @returns The byte array\n * @since 1.0.0\n * @example\n * ```typescript\n * const bytes = BluetoothLowEnergyUtils.convertStringToBytes(\"Hello\");\n * console.log(bytes); // [72, 101, 108, 108, 111]\n * ```\n */\n static convertStringToBytes(str) {\n return Array.from(new TextEncoder().encode(str));\n }\n /**\n * Convert a byte array to a string (UTF-8).\n *\n * @param bytes - The byte array to convert\n * @returns The string\n * @since 1.0.0\n * @example\n * ```typescript\n * const str = BluetoothLowEnergyUtils.convertBytesToString([72, 101, 108, 108, 111]);\n * console.log(str); // \"Hello\"\n * ```\n */\n static convertBytesToString(bytes) {\n return new TextDecoder().decode(new Uint8Array(bytes));\n }\n}\n//# sourceMappingURL=definitions.js.map","import { registerPlugin } from '@capacitor/core';\nimport { installBluetoothLowEnergyShim } from './shim';\nconst BluetoothLowEnergy = registerPlugin('BluetoothLowEnergy', {\n web: () => import('./web').then((module) => new module.BluetoothLowEnergyWeb()),\n});\nBluetoothLowEnergy.shimWebBluetooth = () => {\n installBluetoothLowEnergyShim(BluetoothLowEnergy);\n};\nexport * from './definitions';\nexport { BluetoothLowEnergy };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class BluetoothLowEnergyWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.devices = new Map();\n this.services = new Map();\n this.characteristicListeners = new Map();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async initialize(_options) {\n if (!navigator.bluetooth) {\n throw new Error('Web Bluetooth API is not available');\n }\n }\n shimWebBluetooth() {\n // The browser already provides navigator.bluetooth when available.\n }\n async isAvailable() {\n if (!navigator.bluetooth) {\n return { available: false };\n }\n try {\n const available = await navigator.bluetooth.getAvailability();\n return { available };\n }\n catch (_a) {\n return { available: false };\n }\n }\n async isEnabled() {\n const { available } = await this.isAvailable();\n return { enabled: available };\n }\n async isLocationEnabled() {\n // Location is not relevant for Web Bluetooth\n return { enabled: true };\n }\n async openAppSettings() {\n throw new Error('openAppSettings is not supported on web');\n }\n async openBluetoothSettings() {\n throw new Error('openBluetoothSettings is not supported on web');\n }\n async openLocationSettings() {\n throw new Error('openLocationSettings is not supported on web');\n }\n async checkPermissions() {\n // Web Bluetooth handles permissions through requestDevice\n return {\n bluetooth: 'prompt',\n location: 'granted',\n };\n }\n async requestPermissions() {\n // Web Bluetooth handles permissions through requestDevice\n return {\n bluetooth: 'granted',\n location: 'granted',\n };\n }\n async startScan(options) {\n var _a;\n if (!navigator.bluetooth) {\n throw new Error('Web Bluetooth API is not available');\n }\n const requestOptions = {};\n if ((options === null || options === void 0 ? void 0 : options.services) && options.services.length > 0) {\n requestOptions.filters = [{ services: options.services }];\n }\n else {\n requestOptions.acceptAllDevices = true;\n }\n if (options === null || options === void 0 ? void 0 : options.services) {\n requestOptions.optionalServices = options.services;\n }\n try {\n const device = await navigator.bluetooth.requestDevice(requestOptions);\n const bleDevice = {\n deviceId: device.id,\n name: (_a = device.name) !== null && _a !== void 0 ? _a : null,\n };\n this.devices.set(device.id, device);\n this.notifyListeners('deviceScanned', { device: bleDevice });\n }\n catch (error) {\n if (error instanceof Error && error.name === 'NotFoundError') {\n // User cancelled the device picker\n return;\n }\n throw error;\n }\n }\n async stopScan() {\n // Web Bluetooth doesn't have a continuous scan - it uses a picker\n // Nothing to do here\n }\n async connect(options) {\n const device = this.devices.get(options.deviceId);\n if (!device) {\n throw new Error(`Device ${options.deviceId} not found`);\n }\n if (!device.gatt) {\n throw new Error(`Device ${options.deviceId} does not support GATT`);\n }\n await device.gatt.connect();\n this.notifyListeners('deviceConnected', { deviceId: options.deviceId });\n }\n async disconnect(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!device) {\n throw new Error(`Device ${options.deviceId} not found`);\n }\n if ((_a = device.gatt) === null || _a === void 0 ? void 0 : _a.connected) {\n device.gatt.disconnect();\n }\n this.notifyListeners('deviceDisconnected', { deviceId: options.deviceId });\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async createBond(_options) {\n throw new Error('createBond is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async isBonded(_options) {\n throw new Error('isBonded is not supported on web');\n }\n async discoverServices(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const gattServices = await device.gatt.getPrimaryServices();\n const services = [];\n for (const gattService of gattServices) {\n const characteristics = await gattService.getCharacteristics();\n const bleCharacteristics = await Promise.all(characteristics.map(async (char) => {\n const descriptors = await char.getDescriptors();\n return {\n uuid: char.uuid,\n properties: {\n broadcast: char.properties.broadcast,\n read: char.properties.read,\n writeWithoutResponse: char.properties.writeWithoutResponse,\n write: char.properties.write,\n notify: char.properties.notify,\n indicate: char.properties.indicate,\n authenticatedSignedWrites: char.properties.authenticatedSignedWrites,\n extendedProperties: false,\n },\n descriptors: descriptors.map((desc) => ({ uuid: desc.uuid })),\n };\n }));\n services.push({\n uuid: gattService.uuid,\n characteristics: bleCharacteristics,\n });\n }\n this.services.set(options.deviceId, services);\n }\n async getServices(options) {\n const services = this.services.get(options.deviceId);\n if (!services) {\n return { services: [] };\n }\n return { services };\n }\n async getConnectedDevices() {\n var _a, _b;\n const devices = [];\n for (const [deviceId, device] of this.devices) {\n if ((_a = device.gatt) === null || _a === void 0 ? void 0 : _a.connected) {\n devices.push({\n deviceId,\n name: (_b = device.name) !== null && _b !== void 0 ? _b : null,\n });\n }\n }\n return { devices };\n }\n async readCharacteristic(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const dataView = await characteristic.readValue();\n const value = [];\n for (let i = 0; i < dataView.byteLength; i++) {\n value.push(dataView.getUint8(i));\n }\n return { value };\n }\n async writeCharacteristic(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const data = new Uint8Array(options.value);\n if (options.type === 'withoutResponse') {\n await characteristic.writeValueWithoutResponse(data);\n }\n else {\n await characteristic.writeValueWithResponse(data);\n }\n }\n async startCharacteristicNotifications(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const key = `${options.deviceId}-${options.service}-${options.characteristic}`;\n const listener = (event) => {\n const dataView = event.target.value;\n if (!dataView)\n return;\n const value = [];\n for (let i = 0; i < dataView.byteLength; i++) {\n value.push(dataView.getUint8(i));\n }\n this.notifyListeners('characteristicChanged', {\n deviceId: options.deviceId,\n service: options.service,\n characteristic: options.characteristic,\n value,\n });\n };\n characteristic.addEventListener('characteristicvaluechanged', listener);\n this.characteristicListeners.set(key, listener);\n await characteristic.startNotifications();\n }\n async stopCharacteristicNotifications(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const key = `${options.deviceId}-${options.service}-${options.characteristic}`;\n const listener = this.characteristicListeners.get(key);\n if (listener) {\n characteristic.removeEventListener('characteristicvaluechanged', listener);\n this.characteristicListeners.delete(key);\n }\n await characteristic.stopNotifications();\n }\n async readDescriptor(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const descriptors = await characteristic.getDescriptors();\n const descriptor = descriptors.find((d) => d.uuid === options.descriptor);\n if (!descriptor) {\n throw new Error(`Descriptor ${options.descriptor} not found`);\n }\n const dataView = await descriptor.readValue();\n const value = [];\n for (let i = 0; i < dataView.byteLength; i++) {\n value.push(dataView.getUint8(i));\n }\n return { value };\n }\n async writeDescriptor(options) {\n var _a;\n const device = this.devices.get(options.deviceId);\n if (!((_a = device === null || device === void 0 ? void 0 : device.gatt) === null || _a === void 0 ? void 0 : _a.connected)) {\n throw new Error(`Device ${options.deviceId} is not connected`);\n }\n const service = await device.gatt.getPrimaryService(options.service);\n const characteristic = await service.getCharacteristic(options.characteristic);\n const descriptors = await characteristic.getDescriptors();\n const descriptor = descriptors.find((d) => d.uuid === options.descriptor);\n if (!descriptor) {\n throw new Error(`Descriptor ${options.descriptor} not found`);\n }\n const data = new Uint8Array(options.value);\n await descriptor.writeValue(data);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async readRssi(_options) {\n throw new Error('readRssi is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async requestMtu(_options) {\n throw new Error('requestMtu is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async requestConnectionPriority(_options) {\n throw new Error('requestConnectionPriority is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async startAdvertising(_options) {\n throw new Error('startAdvertising is not supported on web');\n }\n async addGattService(_options) {\n throw new Error('addGattService is not supported on web');\n }\n async removeGattService(_options) {\n throw new Error('removeGattService is not supported on web');\n }\n async setGattCharacteristicValue(_options) {\n throw new Error('setGattCharacteristicValue is not supported on web');\n }\n async notifyGattCharacteristicChanged(_options) {\n throw new Error('notifyGattCharacteristicChanged is not supported on web');\n }\n async stopAdvertising() {\n throw new Error('stopAdvertising is not supported on web');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async startForegroundService(_options) {\n throw new Error('startForegroundService is not supported on web');\n }\n async stopForegroundService() {\n throw new Error('stopForegroundService is not supported on web');\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["Capacitor","registerPlugin","WebPlugin"],"mappings":";;;;AACA,MAAM,WAAW,GAAG,oBAAoB;AACxC,MAAM,oBAAoB,GAAG,KAAK;AAClC,MAAM,0BAA0B,GAAG,8BAA8B;AACjE,MAAM,8BAA8B,GAAG;AACvC,IAAI,kBAAkB,EAAE,MAAM;AAC9B,IAAI,aAAa,EAAE,MAAM;AACzB,IAAI,eAAe,EAAE,MAAM;AAC3B,IAAI,aAAa,EAAE,MAAM;AACzB,IAAI,cAAc,EAAE,MAAM;AAC1B,IAAI,gBAAgB,EAAE,MAAM;AAC5B,IAAI,eAAe,EAAE,MAAM;AAC3B,IAAI,6BAA6B,EAAE,MAAM;AACzC,IAAI,sCAAsC,EAAE,MAAM;AAClD,IAAI,YAAY,EAAE,MAAM;AACxB,IAAI,aAAa,EAAE,MAAM;AACzB,IAAI,yBAAyB,EAAE,MAAM;AACrC,IAAI,kBAAkB,EAAE,MAAM;AAC9B,IAAI,WAAW,EAAE,MAAM;AACvB,IAAI,uBAAuB,EAAE,MAAM;AACnC,IAAI,qBAAqB,EAAE,MAAM;AACjC,IAAI,eAAe,EAAE,MAAM;AAC3B,IAAI,cAAc,EAAE,MAAM;AAC1B,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,6BAA6B,EAAE,MAAM;AACzC,IAAI,gCAAgC,EAAE,MAAM;AAC5C,IAAI,OAAO,EAAE,MAAM;AACnB,IAAI,kBAAkB,EAAE,MAAM;AAC9B,IAAI,UAAU,EAAE,MAAM;AACtB,IAAI,UAAU,EAAE,MAAM;AACtB,IAAI,sBAAsB,EAAE,MAAM;AAClC,IAAI,eAAe,EAAE,MAAM;AAC3B,IAAI,kBAAkB,EAAE,MAAM;AAC9B,IAAI,gB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AG;AAC5B,QAAQ,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC;AAClE,IAAI;AACJ;AACA,IAAI,MAAM,sBAAsB,CAAC,QAAQ,EAAE;AAC3C,QAAQ,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC;AACzE,IAAI;AACJ,IAAI,MAAM,qBAAqB,GAAG;AAClC,QAAQ,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC;AACxE,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -733,11 +733,6 @@ var capacitorBluetoothLowEnergy = (function (exports, core) {
|
|
|
733
733
|
shim.install();
|
|
734
734
|
}
|
|
735
735
|
|
|
736
|
-
/**
|
|
737
|
-
* Utility class for BLE operations.
|
|
738
|
-
*
|
|
739
|
-
* @since 1.0.0
|
|
740
|
-
*/
|
|
741
736
|
class BluetoothLowEnergyUtils {
|
|
742
737
|
/**
|
|
743
738
|
* Convert a byte array to a hex string.
|
|
@@ -1118,6 +1113,18 @@ var capacitorBluetoothLowEnergy = (function (exports, core) {
|
|
|
1118
1113
|
async startAdvertising(_options) {
|
|
1119
1114
|
throw new Error('startAdvertising is not supported on web');
|
|
1120
1115
|
}
|
|
1116
|
+
async addGattService(_options) {
|
|
1117
|
+
throw new Error('addGattService is not supported on web');
|
|
1118
|
+
}
|
|
1119
|
+
async removeGattService(_options) {
|
|
1120
|
+
throw new Error('removeGattService is not supported on web');
|
|
1121
|
+
}
|
|
1122
|
+
async setGattCharacteristicValue(_options) {
|
|
1123
|
+
throw new Error('setGattCharacteristicValue is not supported on web');
|
|
1124
|
+
}
|
|
1125
|
+
async notifyGattCharacteristicChanged(_options) {
|
|
1126
|
+
throw new Error('notifyGattCharacteristicChanged is not supported on web');
|
|
1127
|
+
}
|
|
1121
1128
|
async stopAdvertising() {
|
|
1122
1129
|
throw new Error('stopAdvertising is not supported on web');
|
|
1123
1130
|
}
|