我已成功连接到BLE设备。接下来,我想显示该连接设备的rssi。我正在使用github https://github.com/arpith20/BLEArduino中的现有项目。 该项目分为DeviceScanActivity.java,DeviceControlActivity.java,BluetoothLeService.java和SimpleGattAttributes.java。
我不知道将要显示为Toast和日志活动的readRemoteRssi放在哪里。 希望你们能帮助我
谢谢
DeviceScanActivity.java https://github.com/arpith20/BLEArduino/blob/master/app/src/main/java/xyz/arpith/blearduino/DeviceScanActivity.java
SampleGattAttributes.java https://github.com/arpith20/BLEArduino/blob/master/app/src/main/java/xyz/arpith/blearduino/SampleGattAttributes.java
DeviceControlActivity.java https://github.com/arpith20/BLEArduino/blob/master/app/src/main/java/xyz/arpith/blearduino/DeviceControlActivity.java
BluetoothLeService.java https://github.com/arpith20/BLEArduino/blob/master/app/src/main/java/xyz/arpith/blearduino/BluetoothLeService.java