@onbright/bluetooth-sdk
Advanced tools
Comparing version 1.1.29 to 1.1.30
interface Communication { | ||
onMatchingService(services: WechatMiniprogram.BLEService[]): WechatMiniprogram.BLEService | null; | ||
onMatchingServiceCharacteristic(): BLEDeviceCharacteristicsMap; | ||
onMatchingConnectDevice(devices: WechatMiniprogram.BlueToothDevice[]): WechatMiniprogram.BlueToothDevice | null; | ||
onMatchingService: onMatchingService; | ||
onMatchingServiceCharacteristic: onMatchingServiceCharacteristic; | ||
onMatchingConnectDevice: onMatchingConnectDevice; | ||
onMatchingScanFound?: onMatchingScanFound; | ||
onConnectDeviceBefore?: onConnectDeviceBefore; | ||
} | ||
@@ -11,2 +13,7 @@ type BLEDeviceCharacteristicsMap = { | ||
}; | ||
type onMatchingService = (services: WechatMiniprogram.BLEService[]) => WechatMiniprogram.BLEService | null; | ||
type onMatchingServiceCharacteristic = () => BLEDeviceCharacteristicsMap; | ||
type onMatchingConnectDevice = (devices: WechatMiniprogram.BlueToothDevice[]) => WechatMiniprogram.BlueToothDevice | null; | ||
type onMatchingScanFound = (devices: WechatMiniprogram.BlueToothDevice[]) => WechatMiniprogram.BlueToothDevice[] | null; | ||
type onConnectDeviceBefore = (device: WechatMiniprogram.BlueToothDevice) => boolean; | ||
@@ -76,3 +83,3 @@ interface ProtocolComponent { | ||
getConnectedDevice(): WechatMiniprogram.BlueToothDevice | null; | ||
connectDevice(device: WechatMiniprogram.BlueToothDevice, isOTA: boolean): boolean | null; | ||
connectDevice(device: WechatMiniprogram.BlueToothDevice, isOTA: boolean): boolean; | ||
disconnectDevice(): void; | ||
@@ -79,0 +86,0 @@ setScanTime(scanTime?: number): void; |
{ | ||
"name": "@onbright/bluetooth-sdk", | ||
"version": "1.1.29", | ||
"version": "1.1.30", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "tsup", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
511520
7386