forked from h2zero/esp-nimble-cpp
Re-introduce NimBLEAdvertising::setMin/MaxPreferred.
This implements the functionality of the original library min/max preferred connection parameters settings.
This commit is contained in:
1 parent
36317e18db
commit
ebd7598c49
2 files changed
+66
-2
No files matched your search
@@ -87,6 +87,8 @@ public:
|
||||
void setScanFilter(bool scanRequestWhitelistOnly, bool connectWhitelistOnly);
|
||||
void setScanResponseData(NimBLEAdvertisementData& advertisementData);
|
||||
void setScanResponse(bool);
|
||||
void setMinPreferred(uint16_t);
|
||||
void setMaxPreferred(uint16_t);
|
||||
void advCompleteCB();
|
||||
bool isAdvertising();
|
||||
|
||||
@@ -104,7 +106,8 @@ private:
|
||||
bool m_customScanResponseData;
|
||||
bool m_scanResp;
|
||||
bool m_advDataSet;
|
||||
void (*m_advCompCB)(NimBLEAdvertising *pAdv);
|
||||
void (*m_advCompCB)(NimBLEAdvertising *pAdv);
|
||||
uint8_t m_slaveItvl[4];
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user