add BLECharacteristic::setTempMemory() to explicitly exclude chars from managing table

This commit is contained in:
hathach committed 2017-01-25 01:09:49 +07:00
1 parent a6861aee31
commit 5766aa3d10
5 files changed
+26 -4

No files matched your search

@@ -167,6 +167,7 @@ err_t BLEDfu::start(void)
// No need to keep packet & revision characteristics
BLECharacteristic chr_packet(UUID128_CHR_DFU_PACKET);
chr_packet.setTempMemory();
chr_packet.setProperties(CHR_PROPS_WRITE_WO_RESP);
chr_packet.setMaxLen(20);
VERIFY_STATUS( chr_packet.start() );
@@ -177,6 +178,7 @@ err_t BLEDfu::start(void)
VERIFY_STATUS( _chr_control.start() );
BLECharacteristic chr_revision(UUID128_CHR_DFU_REVISON);
chr_packet.setTempMemory();
chr_revision.setProperties(CHR_PROPS_READ);
chr_revision.setFixedLen(2);
VERIFY_STATUS( chr_revision.start());