is this a classic Bluetooth or BLE question?
for classic Bluetooth you might want to check the Bluetooth extension https://puravidaapps.com/bluetooth.php
the classic bluetooth extension offers a property DisplayRSSI, which can be set to true or false
if you set it to true, you will additionally receive the RSSI after doing a scan
Why are you using BluetoothLE1.ConnectedDeviceRssi in the when BluetoothLE1.DeviceFound event? If you’re scanning for devices, you aren’t in a connected state, so the former will not have a valid value.
If you’re looking to get the RSSI information of found devices, see the BluetoothLE1.FoundDeviceRssi block.
If you’re looking to get the RSSI information of a connected device (and for it to update when not scanning), see the newly added BluetoothLE1.ReadConnectedRssi and the corresponding when BluetoothLE1.RssiChanged event.
thanks @ewpatton I tried as you said in previous conversation.i use the BluetoothLE1.FoundDeviceRssi block.But showing error “Expected device index between 1 and 0”
It takes time to scan. It makes zero sense to try to read the found device RSSI immediately after calling StartScanning as you won’t have found a device by then. You should move the RSSI logic into the Bluetooth1.FoundDevice event.
It might be possible if you pair the devices in advance, but this might be easier if you use the BluetoothClient/BluetoothServer components built in to App Inventor rather than the BLE extension.