Skip to content

Commit 07fce54

Browse files
sandeepmistrySidLeung
authored andcommitted
Set characteristic value internally if it not associated with a service yet
1 parent 6b33e73 commit 07fce54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/CurieBLE/src/BLECharacteristic.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ bool BLECharacteristic::writeValue(const byte value[], int length, int offset)
283283
characteristicImp->valueLength());
284284
BLEDeviceManager::instance()->startAdvertising();
285285
}
286+
} else {
287+
// not associated with a service yet
288+
_setValue(value, length);
289+
retVar = true;
286290
}
287291
return retVar;
288292
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy