Fix old NimBLE

This commit is contained in:
Just Call Me Koko
2026-07-13 11:30:49 -04:00
parent 26aa9c8fe8
commit a1f3c86fe4
+4
View File
@@ -298,6 +298,10 @@ extern "C" {
void onResult(NimBLEAdvertisedDevice *advertisedDevice) {
extern WiFiScan wifi_scan_obj;
String name = advertisedDevice->getName().c_str();
int name_length = advertisedDevice->getName().length();
int rssi = advertisedDevice->getRSSI();
String mac = advertisedDevice->getAddress().toString().c_str();
unsigned char mac_char[6];
wifi_scan_obj.copyNimbleMac(advertisedDevice->getAddress(), mac_char);