Skip to content

Commit 721c6b3

Browse files
committed
fixed "In setup()" setction
- removed old code
1 parent bb52038 commit 721c6b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ bool onPowerState(const String deviceId, bool &state) {
6161
SinricProSwitch& mySwitch = SinricPro.add<SinricProSwitch>(SWITCH_ID);
6262
// set callback function
6363
mySwitch.onPowerState(onPowerState);
64-
// add switch to SinricPro
65-
SinricPro.add(mySwitch);
6664
// startup SinricPro
6765
SinricPro.begin(SOCKET_AUTH_TOKEN, SIGNING_KEY);
6866

0 commit comments

Comments
 (0)