Skip to content

@capgo/capacitor-bluetooth-low-energy

Capacitor BLE 通信用低消費電力Bluetoothプラグイン。

Capacitor BLE 通信用低消費電力Bluetoothプラグイン。

主な機能

「主な機能」
  • initialize - BLE プラグインを初期化する。どの他のメソッドよりも前に呼び出す必要がある。
  • shimWebBluetooth - Capacitor Web Bluetooth シムをインストールする。 navigator.bluetooth. Capacitor ネイティブ アプリから使用する前に、Web Bluetooth API を手動で呼び出す。
  • isAvailable - このデバイスで Bluetooth が利用可能かどうかを確認する。
  • isEnabled - このデバイスで Bluetooth が有効かどうかを確認する。
メソッド説明
initializeBLE プラグインを初期化する。どの他のメソッドよりも前に呼び出す必要がある。
shimWebBluetoothCapacitor Web Bluetooth シムをインストールする。 navigator.bluetooth. Capacitor ネイティブ アプリから使用する前に、Web Bluetooth API を手動で呼び出す。
isAvailable__CAPGO_KEEP_0__が利用可能かどうかを確認します。
isEnabled__CAPGO_KEEP_0__が有効かどうかを確認します。
isLocationEnabled__CAPGO_KEEP_0__が有効かどうかを確認します (Android 限定)。
openAppSettingsアプリの設定画面を開きます。
openBluetoothSettings__CAPGO_KEEP_0__の設定画面を開きます (Android 限定)。
openLocationSettings__CAPGO_KEEP_0__の設定画面を開きます (Android 限定)。
checkPermissions現在の許可状態を確認します。
requestPermissions__CAPGO_KEEP_0__の許可を求めます。
startScanBLE デバイスをスキャンします。
stopScanBLE デバイスのスキャンを停止します。
connectBLE デバイスに接続します。
disconnectBLE デバイスから切断します。
createBond__CAPGO_KEEP_0__ (Android 限定) での BLE デバイスと接続する。
isBonded__CAPGO_KEEP_0__ (Android 限定) でのデバイスが接続されているかどうかを確認する。
discoverServices接続されたデバイス上のサービスを検出する。
getServicesデバイスの検出されたサービスを取得する。
getConnectedDevices接続されたデバイスの一覧を取得する。
readCharacteristic特性値を読み取る。
writeCharacteristic特性値に値を書き込む。
startCharacteristicNotifications特性の通知を開始する。
stopCharacteristicNotifications特性の通知を停止する。
readDescriptor記述子値を読み取る。
writeDescriptor記述子値に値を書き込む。
readRssi接続されたデバイスのRSSI (信号強度) を読み取る。
requestMtuRequest MTU size change (Android only).
requestConnectionPriorityRequest connection priority (Android only).
startAdvertisingBLEサーバーとしてペリフェラルとして広告を開始します。
stopAdvertising広告を停止します。
startForegroundServiceAndroid用にバックグラウンドでBLE接続を維持するために、フォアグラウンドサービスを開始します。
stopForegroundServiceフォアグラウンドサービスを停止します (Android only).
getPluginVersionnative Capacitor プラグインのバージョンを取得します。
addListenerデバイスがスキャンされたイベントのリスナーを追加します。
addListenerデバイスが接続されたイベントのリスナーを追加します。
addListenerデバイスが切断されたイベントのリスナーを追加します。
addListener特性が変更されたイベントのリスナーを追加します。
removeAllListenersこのプラグインのすべてのリスナーを削除します。

__CAPGO_KEEP_0__から同期されたこのリファレンス src/definitions.tscapacitor-Bluetooth Low Energy.

capgo/capacitor-Bluetooth Low Energyから続けて

「capgo/capacitor-Bluetooth Low Energyから続けて」セクション

__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-Bluetooth Low Energyを使用している場合 capgo/capacitor-Bluetooth Low Energy __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-Bluetooth Low Energyを使用して、移行とエンタープライズオペレーションの計画と接続 capgo/capacitor-Bluetooth Low Energyを使用して、capgo/capacitor-Bluetooth Low Energyのネイティブ機能 capgo/capacitor-Bluetooth Low Energyを使用して Capgo Enterprise Capgo Enterpriseの製品ワークフローについて Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin Alternativesの製品ワークフローについて Capgo Alternatives Capgo Alternativesの製品ワークフローについて Capgo Consulting Capgo Consultingの製品ワークフローについて