Capacitor Bluetooth Low Energy Plugin for BLE communication.
「BLE プラグインの初期化」を実行する必要があります。初期化は他のメソッドを実行する前に実行する必要があります。
Web Bluetooth シミュレータを__CAPGO_KEEP_0__でインストールする必要がありますinitialize__CAPGO_KEEP_0__ Web Bluetooth シミュレータをインストールする必要がありますshimWebBluetoothCapacitor Web Bluetooth シミュレータをインストールする必要がありますnavigator.bluetooth. Bluetooth API を Capacitor から呼び出す前に、手動で呼び出してください。isAvailable- このデバイスで Bluetooth が利用可能かどうかを確認します。isEnabled- このデバイスで Bluetooth が有効かどうかを確認します。
Public API
Section titled “Public API”| Method | Description |
|---|---|
initialize | BLE プラグインを初期化します。どのメソッドも呼び出す前に、必ず呼び出してください。 |
shimWebBluetooth | Capacitor Web Bluetooth シムをインストールします。 navigator.bluetooth. Bluetooth API を Capacitor から呼び出す前に、手動で呼び出してください。 |
isAvailable | このデバイスで Bluetooth が利用可能かどうかを確認します。 |
isEnabled | このデバイスで Bluetooth が有効かどうかを確認します。 |
isLocationEnabled | __CAPGO_KEEP_0__ (Android でのみ). |
openAppSettings | __CAPGO_KEEP_1__ を開きます。 |
openBluetoothSettings | __CAPGO_KEEP_2__ を開きます (Android でのみ). |
openLocationSettings | __CAPGO_KEEP_3__ を開きます (Android でのみ). |
checkPermissions | __CAPGO_KEEP_0__ の現在の許可状態を確認します。 |
requestPermissions | __CAPGO_KEEP_2__ の許可を要求します。 |
startScan | BLE デバイスのスキャンを開始します。 |
stopScan | BLE デバイスのスキャンを停止します。 |
connect | BLE デバイスに接続します。 |
disconnect | BLE デバイスから切断します。 |
createBond | BLE デバイスとバンドを形成します (Android でのみ). |
isBonded | __CAPGO_KEEP_3__ がバンドされているかどうかを確認します (Android でのみ). |
discoverServices | __CAPGO_KEEP_0__を接続したデバイスで利用できるサービスを発見します。 |
getServices | __CAPGO_KEEP_0__のデバイスで利用できるサービスを取得します。 |
getConnectedDevices | __CAPGO_KEEP_0__のリストを取得します。 |
readCharacteristic | 特性値を読み取ります。 |
writeCharacteristic | 特性値に値を書き込みます。 |
startCharacteristicNotifications | 特性の通知を開始します。 |
stopCharacteristicNotifications | 特性の通知を停止します。 |
readDescriptor | 記述値を読み取ります。 |
writeDescriptor | 記述値に値を書き込みます。 |
readRssi | 接続されたデバイスのRSSI(信号強度)を読み取ります。 |
requestMtu | MTUサイズの変更を要求します(Androidのみ)。 |
requestConnectionPriority | 接続優先度を要求します(Androidのみ)。 |
startAdvertising | Start advertising as a peripheral (BLE server). |
stopAdvertising | Stop advertising. |
startForegroundService | Start a foreground service to maintain BLE connections in background (Android only). |
stopForegroundService | Stop the foreground service (Android only). |
getPluginVersion | Get the native Capacitor plugin version. |
addListener | Add a listener for device scanned events. |
addListener | Add a listener for device connected events. |
addListener | Add a listener for device disconnected events. |
addListener | Add a listener for characteristic changed events. |
removeAllListeners | Remove all listeners for this plugin. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-bluetooth-low-energy.
from @capgo/capacitor-bluetooth-low-energy
「@capgo/capacitor-bluetooth-low-energy」If you are using @capgo/capacitor-bluetooth-low-energy to plan migration and enterprise operations, connect it with Using @capgo/capacitor-bluetooth-low-energy for the native capability in Using @capgo/capacitor-bluetooth-low-energy, Capgo Enterprise for the product workflow in Capgo Enterprise, イオニック エンタープライズ プラグイン代替 イオニック エンタープライズ プラグイン代替の製品ワークフローについて Capgo 代替 Capgo 代替の製品ワークフローについて、 Capgo コンサルティング Capgo コンサルティングの製品ワークフローについて。