I am using the below thread for getting the RSSI ID from Beacons scanning by ESP32.
https://www.b4x.com/android/forum/threads/esp32-ble-scanning-inline-c.111675/#content
But I am not able to get the value of RSSI ID at B4R logs from Inline C...
Please advice how to get the RSSI value from Inline C at B4R.
Thanks
https://www.b4x.com/android/forum/threads/esp32-ble-scanning-inline-c.111675/#content
But I am not able to get the value of RSSI ID at B4R logs from Inline C...
B4X:
#if C
/*
https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/examples/BLE_scan/BLE_scan.ino
*/
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEScan.h>
#include <BLEAdvertisedDevice.h>
int scanTime = 10; //In seconds
BLEScan* pBLEScan;
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {
Serial.printf("Advertised Device: %s \n", advertisedDevice.toString().c_str());
Serial.print(" RSSI: ");Serial.println(advertisedDevice.getRSSI()); =====>>> This Line I am getting stuck
}
};
Please advice how to get the RSSI value from Inline C at B4R.
Thanks