BLEScan not returning beacon name.
Posted: Wed Jul 10, 2019 12:45 pm
Code: Untitled.cpp Select all
class MyAdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks
{
void onResult(BLEAdvertisedDevice advertisedDevice)
{
printf("Name %s, Address %s, RSSI %d\n", advertisedDevice.getName().c_str(), advertisedDevice.getAddress().toString().c_str(), advertisedDevice.getRSSI());
//data = json.createNestedArray("dat");
}
};