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

+4
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)