Skip to content

Commit 479e860

Browse files
committed
Sent initial value of switch characteristic
1 parent 6d6a0c6 commit 479e860

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/CurieBle/examples/CallbackLED/CallbackLED.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void setup() {
4949
// assign event handlers for characteristic
5050
switchChar.setEventHandler(BLEWritten, switchCharacteristicWritten);
5151

52+
switchChar.setValue(0);
5253

5354
// advertise the service
5455
blePeripheral.begin();

0 commit comments

Comments
 (0)