forked from h2zero/esp-nimble-cpp
Implement scan wantDuplicates parameter in callback registration.
Also adds: * NimBLEScan::setDuplicateFilter() to tell the controller to filter duplicates before sending the result to the host. * NimBLEScan::setLimitedOnly() to tell the controller only report scan results from devices advertising in limited discovery mode, i.e. directed advertising. * NimBLEScan::setFilterPolicy() to set the filter policy i.e whitelist only devices.
This commit is contained in:
1 parent
e936070464
commit
745f9c00ed
5 files changed
+75
-45
No files matched your search
@@ -71,9 +71,9 @@ public:
|
||||
return *((T *)pData);
|
||||
}
|
||||
|
||||
uint8_t readUInt8() __attribute__ ((deprecated));
|
||||
uint16_t readUInt16() __attribute__ ((deprecated));
|
||||
uint32_t readUInt32() __attribute__ ((deprecated));
|
||||
uint8_t readUInt8() __attribute__ ((deprecated("Use template readValue<uint8_t>()")));
|
||||
uint16_t readUInt16() __attribute__ ((deprecated("Use template readValue<uint16_t>()")));
|
||||
uint32_t readUInt32() __attribute__ ((deprecated("Use template readValue<uint32_t>()")));
|
||||
std::string getValue(time_t *timestamp = nullptr);
|
||||
|
||||
template<typename T>
|
||||
@@ -90,7 +90,8 @@ public:
|
||||
bool unsubscribe(bool response = true);
|
||||
bool registerForNotify(notify_callback notifyCallback,
|
||||
bool notifications = true,
|
||||
bool response = true) __attribute__ ((deprecated));
|
||||
bool response = true)
|
||||
__attribute__ ((deprecated("Use subscribe()/unsubscribe()")));
|
||||
bool writeValue(const uint8_t* data,
|
||||
size_t length,
|
||||
bool response = false);
|
||||
|
||||
Reference in new issue
Block a user