Add access to the adv type of remote device

Adds new method `uint8_t NimBLEAdvertisedDevice::getAdvType()`
to get the advertisement type of the found device.
This commit is contained in:
h2zero
2020-05-25 18:52:46 -06:00
parent c5c9423893
commit 5667c97efe
3 changed files with 13 additions and 0 deletions

View File

@@ -62,6 +62,16 @@ NimBLEAddress NimBLEAdvertisedDevice::getAddress() {
} // getAddress
/**
* @brief Get the advertised type.
*
* @return The advertised type of the advertised device.
*/
uint8_t NimBLEAdvertisedDevice::getAdvType() {
return m_advType;
} // getAddress
/**
* @brief Get the appearance.
*