UNPKG

hfs-bluetooth-adapter

Version:

海富思科技对外提供的蓝牙设备LLSyncSDK

17 lines (16 loc) 703 B
import { blueToothDeviceInfoType, searchDeviceOptionsType } from './type'; declare class BluetoothAdapter { #private; constructor(); initBluetooth(): Promise<WechatMiniprogram.BluetoothError | string>; startSearch(options: searchDeviceOptionsType, timeout?: number): void; searchDevice({ productId, deviceName }: { productId: string; deviceName: string; }): Promise<WechatMiniprogram.BlueToothDevice & { deviceId: string; } | WechatMiniprogram.BluetoothError>; stopSearch(): void; connectDevice(device: WechatMiniprogram.BlueToothDevice): Promise<blueToothDeviceInfoType | WechatMiniprogram.BluetoothError>; } export default BluetoothAdapter;