答えて
あなたは、接続されたデバイスのためのRSSI(信号強度)を読み取ることができます。
余分なEXTRA_RSSIを取得して、ACTION_FOUNDインテントからRSSIを取得します。
private final BroadcastReceiver receiver = new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(BluetoothDevice.ACTION_FOUND.equals(action)) {
int rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);
Toast.makeText(getApplicationContext()," RSSI: " + rssi + "dBm", Toast.LENGTH_SHORT).show();
}
}
};
OK、しかし、私はBluetoothペアリングされたデバイスが必要です。この方法で私は近くのデバイスのBluetoothのRSSI値を取得することができます。 – User
@ユーザーあなたが必要なものでない場合、なぜ答えを受け入れるのですか? –
@Renaud *接続されているデバイスのRSSI(Signal Strength)を読むことができます*これはあなたのコードとは異なります。見つけられて接続されていない同じ –
- 1. Microsoft Bluetooth Stack RSSI回避策
- 2. Bluetoothで「null」を返すAndroid RSSI
- 3. 発見中のBluetooth RSSI測定
- 4. Windows 7/Vista/XPでBluetooth RSSIを読み取る
- 5. J2MEを使用してRSSI値を取得する
- 6. gamekit iphone apiのRSSI値
- 7. Bluetooth低エネルギー対応デバイスのRSSI値からの距離を求める
- 8. Regd。型変換
- 9. RSSIを使用したBluetoothデバイスの近接性
- 10. コアのBluetooth - 範囲内のデバイスの一定のRSSIアップデート
- 11. cordova/phonegapを使用してBLE RSSI値を取得できません
- 12. Wifi RSSI値を継続的に取得するAndroidアプリケーションが起動しない
- 13. ラズベリーPIのcsvファイルにRSSI値を格納する方法は?
- 14. CoreBluetoothでペアデバイスのインスタンスを取得できないのはなぜですか?
- 15. GSM RSSIとLTE RSSIとRSRP
- 16. Android - このデバイスのBluetooth UUIDを取得
- 17. ブラックベリーデバイスのBluetooth MACアドレスを取得
- 18. Bluetoothデバイスからの応答を取得
- 19. AndroidデバイスのBluetoothデバイスタイプを取得
- 20. Android bluetoothデバイスピッカーからBluetoothデバイス情報を取得
- 21. AndroidのBluetooth信号強度
- 22. adbからBluetooth MACアドレスを取得
- 23. ヘッドレスプログラムからBluetoothイベントを取得
- 24. Windows Mobile - Bluetooth MACアドレスを取得する
- 25. WindowsXP上のpyBluezとのRSSI
- 26. 反射されたWiFi信号のRSSI値を取得することは可能ですか?
- 27. ペアデバイスから最初のデバイスを選択
- 28. BluetoothからBluetoothデバイスを取得する方法Android開発の設定?
- 29. ns2のRSSI計算
- 30. HM-10を使用したRSSI測定
質問ありがとうございます。ペアにする必要はありません。そして、regdとは何ですか? –
@ TimCastelijnsどのように,, – User