update BLE ESP32 lib to last version
note this version of library is compatible with this rev: https://github.com/espressif/arduino-esp32/tree/89859f7f4c07ce3e5d487a4b689dbda78f5d5c3a as stated in the wiki
This commit is contained in:
1 parent
0f118c2020
commit
751c479e59
23 files changed
+461
-72
No files matched your search
@@ -234,6 +234,7 @@ void BLEAdvertisedDevice::parseAdvertisement(uint8_t* payload) {
|
||||
uint8_t ad_type;
|
||||
uint8_t sizeConsumed = 0;
|
||||
bool finished = false;
|
||||
setPayload(payload);
|
||||
|
||||
while(!finished) {
|
||||
length = *payload; // Retrieve the length of the record.
|
||||
@@ -506,7 +507,13 @@ std::string BLEAdvertisedDevice::toString() {
|
||||
return ss.str();
|
||||
} // toString
|
||||
|
||||
uint8_t* BLEAdvertisedDevice::getPayload() {
|
||||
return m_payload;
|
||||
}
|
||||
|
||||
void BLEAdvertisedDevice::setPayload(uint8_t* payload) {
|
||||
m_payload = payload;
|
||||
}
|
||||
|
||||
|
||||
#endif /* CONFIG_BT_ENABLED */
|
||||
|
||||
Reference in new issue
Block a user