Skip to content

@capgo/capacitor-低エネルギーブルートゥース

Capacitor 低エネルギーブルートゥース プラグイン

Capacitor Bluetooth Low Energy Plugin for BLE communication.

「BLE プラグインの初期化」を実行する必要があります。初期化は他のメソッドを実行する前に実行する必要があります。

Web Bluetooth シミュレータを__CAPGO_KEEP_0__でインストールする必要があります
  • initialize __CAPGO_KEEP_0__ Web Bluetooth シミュレータをインストールする必要があります
  • shimWebBluetooth Capacitor Web Bluetooth シミュレータをインストールする必要があります navigator.bluetooth. Bluetooth API を Capacitor から呼び出す前に、手動で呼び出してください。
  • isAvailable - このデバイスで Bluetooth が利用可能かどうかを確認します。
  • isEnabled - このデバイスで Bluetooth が有効かどうかを確認します。
MethodDescription
initializeBLE プラグインを初期化します。どのメソッドも呼び出す前に、必ず呼び出してください。
shimWebBluetoothCapacitor 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__ の許可を要求します。
startScanBLE デバイスのスキャンを開始します。
stopScanBLE デバイスのスキャンを停止します。
connectBLE デバイスに接続します。
disconnectBLE デバイスから切断します。
createBondBLE デバイスとバンドを形成します (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(信号強度)を読み取ります。
requestMtuMTUサイズの変更を要求します(Androidのみ)。
requestConnectionPriority接続優先度を要求します(Androidのみ)。
startAdvertisingStart advertising as a peripheral (BLE server).
stopAdvertisingStop advertising.
startForegroundServiceStart a foreground service to maintain BLE connections in background (Android only).
stopForegroundServiceStop the foreground service (Android only).
getPluginVersionGet the native Capacitor plugin version.
addListenerAdd a listener for device scanned events.
addListenerAdd a listener for device connected events.
addListenerAdd a listener for device disconnected events.
addListenerAdd a listener for characteristic changed events.
removeAllListenersRemove all listeners for this plugin.

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 コンサルティングの製品ワークフローについて。