What do you mean by original board set up?
And it wont let me paste the whole error code but here's part of it:
BLE_scan:10:1: error: 'BLEScan' does not name a type
BLEScan* pBLEScan;
^~~~~~~
BLE_scan:12:72: error: expected class-name before '{' token
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
^
BLE_scan:13:19: error: 'BLEAdvertisedDevice' has not been declared
void onResult(BLEAdvertisedDevice advertisedDevice) {
^~~~~~~~~~~~~~~~~~~
/Users/meganiversen/Documents/Arduino/libraries/doggy-doorbell-main/BLE_scan/BLE_scan.ino: In member function 'void MyAdvertisedDeviceCallbacks::onResult(int)':
BLE_scan:14:35: error: request for member 'getRSSI' in 'advertisedDevice', which is of non-class type 'int'
int rssi = advertisedDevice.getRSSI();
^~~~~~~
BLE_scan:16:68: error: request for member 'getServiceUUID' in 'advertisedDevice', which is of non-class type 'int'
Serial.printf("Advertised Device: %s \n", advertisedDevice.getServiceUUID().toString().c_str());
^~~~~~~~~~~~~~
BLE_scan:19:41: error: request for member 'getRSSI' in 'advertisedDevice', which is of non-class type 'int'
Serial.println(advertisedDevice.getRSSI());
^~~~~~~
/Users/meganiversen/Documents/Arduino/libraries/doggy-doorbell-main/BLE_scan/BLE_scan.ino: In function 'void setup()':
BLE_scan:28:3: error: 'BLEDevice' has not been declared
BLEDevice::init("");
^~~~~~~~~
BLE_scan:29:3: error: 'pBLEScan' was not declared in this scope
pBLEScan = BLEDevice::getScan(); //create new scan
^~~~~~~~
BLE_scan:29:14: error: 'BLEDevice' has not been declared
pBLEScan = BLEDevice::getScan(); //create new scan
^~~~~~~~~
/Users/meganiversen/Documents/Arduino/libraries/doggy-doorbell-main/BLE_scan/BLE_scan.ino: In function 'void loop()':
BLE_scan:38:3: error: 'BLEScanResults' was not declared in this scope
BLEScanResults foundDevices = pBLEScan->start(scanTime, false);
^~~~~~~~~~~~~~
BLE_scan:40:18: error: 'foundDevices' was not declared in this scope
Serial.println(foundDevices.getCount());
^~~~~~~~~~~~
BLE_scan:42:3: error: 'pBLEScan' was not declared in this scope
pBLEScan->clearResults(); // delete results fromBLEScan buffer to release memory
^~~~~~~~
Multiple libraries were found for "BLEDevice.h"
Used: /Users/meganiversen/Documents/Arduino/libraries/ESP32_BLE_Arduino
Not used: /Users/meganiversen/Library/Arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE
Not used: /Users/meganiversen/Documents/Arduino/libraries/ESP32_BLE_Arduino-master
Using library ESP32_BLE_Arduino at version 1.0.1 in folder: /Users/meganiversen/Documents/Arduino/libraries/ESP32_BLE_Arduino
exit status 1
'BLEScan' does not name a type