Arduino Core 3 (#407)
* Add and remove libs and components for Arduino Core 3 * Arduino Core 3 * Add back Solo1 * Change ESP32-S3 to 4MB build * Update README.md * Fix retain and number of retries * Fix rolling log * Fix defaults * Fix BleScanner on Solo1 * Export settings * Import settings * Fix HA Battery voltage * Change submodule * Update espMqttClient and AsyncTCP * Webserial and MQTT/Network reconnecting * Update nuki_ble --------- Co-authored-by: iranl <iranl@github.com>
This commit is contained in:
@@ -213,6 +213,24 @@ void PresenceDetection::onResult(NimBLEAdvertisedDevice *device)
|
||||
// }
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string nameStr = "-";
|
||||
i=0;
|
||||
len = nameStr.length();
|
||||
while(i < len && i < sizeof(pdDevice->name)-1)
|
||||
{
|
||||
pdDevice->name[i] = nameStr.at(i);
|
||||
++i;
|
||||
}
|
||||
|
||||
pdDevice->timestamp = millis();
|
||||
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mtx);
|
||||
_devices[addr] = pdDevice;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if(device->haveName())
|
||||
@@ -232,4 +250,4 @@ void PresenceDetection::onResult(NimBLEAdvertisedDevice *device)
|
||||
bool PresenceDetection::enabled()
|
||||
{
|
||||
return _timeout > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user