Capacitor BLE 플러그인 BLE 통신을위한.
기본 기능
‘기본 기능’이라는 제목의 섹션initialize- BLE 플러그인을 초기화합니다. 다른 메서드 호출하기 전에 반드시 호출해야합니다.shimWebBluetooth- Capacitor 웹 블루투시미를 설치합니다.navigator.bluetooth. Bluetooth API를 Capacitor 네이티브 앱에서 수동으로 호출하기 전에 사용하세요.isAvailable- 장치에서 블루투스를 사용할 수 있는지 확인하세요.isEnabled- 장치에서 블루투스를 사용할 수 있는지 확인하세요.
공개 API
제목: 공개 API| 메서드 | 설명 |
|---|---|
initialize | BLE 플러그인을 초기화합니다. 다른 메서드를 호출하기 전에 반드시 호출해야 합니다. |
shimWebBluetooth | Capacitor 웹 블루투스 시뮬레이터를 설치하세요. navigator.bluetooth. Bluetooth API를 Capacitor 네이티브 앱에서 수동으로 호출하기 전에 사용하세요. |
isAvailable | 장치에서 블루투스를 사용할 수 있는지 확인하세요. |
isEnabled | 장치에서 블루투스를 사용할 수 있는지 확인하세요. |
isLocationEnabled | 위치 서비스가 활성화되어 있는지 확인 (Android만). |
openAppSettings | 앱 설정 페이지를 열어보세요. |
openBluetoothSettings | 블루투스 설정 페이지를 열어보세요 (Android만). |
openLocationSettings | 위치 설정 페이지를 열어보세요 (Android만). |
checkPermissions | 현재 권한 상태를 확인하세요. |
requestPermissions | 블루투스 권한을 요청하세요. |
startScan | BLE 장치를 스캔하세요. |
stopScan | BLE 장치를 스캔 중지하세요. |
connect | BLE 장치와 연결하세요. |
disconnect | BLE 장치와 연결을 끊으세요. |
createBond | BLE 장치와 결합하세요 (Android만). |
isBonded | 장치가 결합되어 있는지 확인하세요 (Android만). |
discoverServices | __CAPGO_KEEP_0__를 연결된 장치에서 발견합니다. |
getServices | __CAPGO_KEEP_0__를 위한 장치에 대한 발견 서비스를 가져옵니다. |
getConnectedDevices | __CAPGO_KEEP_0__ 목록을 가져옵니다. |
readCharacteristic | 특성 값 읽기. |
writeCharacteristic | 특성 값에 대한 값 쓰기. |
startCharacteristicNotifications | 특성에 대한 알림 시작. |
stopCharacteristicNotifications | 특성에 대한 알림 중지. |
readDescriptor | 설명자 값 읽기. |
writeDescriptor | 설명자 값에 대한 값 쓰기. |
readRssi | 연결된 장치의 RSSI(신호 강도)를 읽습니다. |
requestMtu | Android 전용: MTU 크기 변경 요청. |
requestConnectionPriority | Android 전용: 연결 우선순위 요청. |
startAdvertising | Start BLE advertising as a peripheral. |
stopAdvertising | Stop BLE advertising. |
startForegroundService | Start a foreground service to maintain BLE connections in background (Android only). |
stopForegroundService | Foreground BLE service stop (Android only). |
getPluginVersion | Get the native Capacitor plugin version. |
addListener | BLE device scanned event listener add. |
addListener | BLE device connected event listener add. |
addListener | BLE device disconnected event listener add. |
addListener | BLE characteristic changed event listener add. |
removeAllListeners | BLE event listener remove. |
기본 데이터 저장소
BLE 연결 및 데이터 관리이 참조는 Cloudflare에서同步됩니다. src/definitions.ts in capacitor-블루투스 저전력.
capgo에서 계속하기 @capgo/capacitor-블루투스 저전력
capgo에서 계속하기 @capgo/capacitor-블루투스 저전력 제목Capacitor를 사용하는 경우 @capgo/capacitor-블루투스 저전력 __CAPGO_KEEP_0__ Enterprise와 연결하여 Capacitor를 사용하여 @capgo/capacitor-블루투스 저전력 Capacitor를 사용하여 @capgo/capacitor-블루투스 저전력의 원시 기능을 사용합니다. Capgo Enterprise Capgo Enterprise의 제품 워크플로우 Ionic Enterprise Plugin 대체 Ionic Enterprise Plugin 대체 제품 워크플로우를 위해 Capgo 대체 Capgo 대체 제품 워크플로우를 위해, Capgo 컨설팅 Capgo 컨설팅 제품 워크플로우를 위해.