Capacitor BLE 플러그인 BLE 통신을 위해.
기본 기능
기본 기능 제목입니다.initialize- BLE 플러그인을 초기화합니다. 다른 메서드 호출하기 전에 반드시 호출해야 합니다.shimWebBluetooth- Capacitor 웹 블루투시미를 설치합니다.navigator.bluetooth. 이 기능을 사용하기 전에 API Web Bluetooth을 Capacitor 네이티브 앱에서 수동으로 호출하세요.isAvailable- 장치에서 블루투스를 사용할 수 있는지 확인하세요.isEnabled- 블루투스를 활성화한 상태인지 확인하세요.
공개 API
제목: 공개 API| Method | 설명 |
|---|---|
initialize | BLE 플러그인을 초기화합니다. 다른 메서드를 호출하기 전에 반드시 호출해야 합니다. |
shimWebBluetooth | Capacitor Web Bluetooth shim을 설치하세요. navigator.bluetooth. 이 기능을 사용하기 전에 API Web Bluetooth을 Capacitor 네이티브 앱에서 수동으로 호출하세요. |
isAvailable | 장치에서 블루투스를 사용할 수 있는지 확인하세요. |
isEnabled | 블루투스를 활성화한 상태인지 확인하세요. |
isLocationEnabled | __CAPGO_KEEP_0__ (Android 전용). |
openAppSettings | __CAPGO_KEEP_1__ 열기. |
openBluetoothSettings | __CAPGO_KEEP_2__ (Android 전용). |
openLocationSettings | __CAPGO_KEEP_3__ 열기. |
checkPermissions | __CAPGO_KEEP_4__ 상태를 확인하세요. |
requestPermissions | __CAPGO_KEEP_5__ 권한을 요청하세요. |
startScan | __CAPGO_KEEP_6__ BLE 장치를 스캔합니다. |
stopScan | __CAPGO_KEEP_7__ BLE 장치를 스캔 중지합니다. |
connect | __CAPGO_KEEP_8__ BLE 장치에 연결합니다. |
disconnect | __CAPGO_KEEP_9__ BLE 장치에서 연결을 끊습니다. |
createBond | __CAPGO_KEEP_10__ (Android 전용). |
isBonded | __CAPGO_KEEP_11__ (Android 전용). |
discoverServices | __CAPGO_KEEP_0__ |
getServices | __CAPGO_KEEP_0__ |
getConnectedDevices | __CAPGO_KEEP_0__ |
readCharacteristic | __CAPGO_KEEP_0__ |
writeCharacteristic | __CAPGO_KEEP_0__ |
startCharacteristicNotifications | __CAPGO_KEEP_0__ |
stopCharacteristicNotifications | __CAPGO_KEEP_0__ |
readDescriptor | __CAPGO_KEEP_0__ |
writeDescriptor | __CAPGO_KEEP_0__ |
readRssi | __CAPGO_KEEP_0__ |
requestMtu | __CAPGO_KEEP_0__ |
requestConnectionPriority | __CAPGO_KEEP_0__ |
startAdvertising | Start advertising as a peripheral (BLE server). |
stopAdvertising | 광고를 중단합니다. |
startForegroundService | Start a foreground service to maintain BLE connections in background (Android only). |
stopForegroundService | Foreground 서비스를 중단합니다 (Android only). |
getPluginVersion | Get the native Capacitor plugin version. |
addListener | 장치 스캔 이벤트에 대한 리스너를 추가합니다. |
addListener | 장치 연결 이벤트에 대한 리스너를 추가합니다. |
addListener | 장치 연결 해제 이벤트에 대한 리스너를 추가합니다. |
addListener | 특성 변경 이벤트에 대한 리스너를 추가합니다. |
removeAllListeners | 이 플러그인에 대한 모든 리스너를 제거합니다. |
실질적인 진실
Source Of TruthThis reference is synced from src/definitions.ts in capacitor-low-power-Bluetooth.
Keep going from @capgo/capacitor-low-power-Bluetooth
Section titled “Keep going from @capgo/capacitor-low-power-Bluetooth”If you are using @capgo/capacitor-low-power-Bluetooth to plan migration and enterprise operations, connect it with Using @capgo/capacitor-low-power-Bluetooth for the native capability in Using @capgo/capacitor-low-power-Bluetooth, Capgo Enterprise for the product workflow in Capgo Enterprise, Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin 대체 옵션 Capgo Alternatives Capgo 제품 워크플로 대체 옵션 Capgo Consulting Capgo 제품 워크플로 컨설팅