Fix Not by reference. But the value was updated. (#3279)
This commit is contained in:
parent
3570d48eb9
commit
675a40b257
@ -244,7 +244,15 @@ std::map<uint16_t, BLERemoteCharacteristic*>* BLERemoteService::getCharacteristi
|
|||||||
* @brief This function is designed to get characteristics map when we have multiple characteristics with the same UUID
|
* @brief This function is designed to get characteristics map when we have multiple characteristics with the same UUID
|
||||||
*/
|
*/
|
||||||
void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
|
void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
|
||||||
pCharacteristicMap = &m_characteristicMapByHandle;
|
log_v(">> getCharacteristics() for service: %s", getUUID().toString().c_str());
|
||||||
|
// If is possible that we have not read the characteristics associated with the service so do that
|
||||||
|
// now. The request to retrieve the characteristics by calling "retrieveCharacteristics" is a blocking
|
||||||
|
// call and does not return until all the characteristics are available.
|
||||||
|
if (!m_haveCharacteristics) {
|
||||||
|
retrieveCharacteristics();
|
||||||
|
}
|
||||||
|
log_v("<< getCharacteristics() for service: %s", getUUID().toString().c_str());
|
||||||
|
*pCharacteristicMap = m_characteristicMapByHandle;
|
||||||
} // Get the characteristics map.
|
} // Get the characteristics map.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user