Skip to content

Commit 040b63b

Browse files
committed
Set initial value of characteristics
1 parent 479e860 commit 040b63b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/CurieBle/examples/ButtonLED/ButtonLED.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ void setup() {
4747
blePeripheral.addAttribute(ledCharacteristic);
4848
blePeripheral.addAttribute(buttonCharacteristic);
4949

50+
ledCharacteristic.setValue(0);
51+
buttonCharacteristic.setValue(0);
52+
5053
// advertise the service
5154
blePeripheral.begin();
5255

0 commit comments

Comments
 (0)