File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ SIGNING_KEY may be named "APP SECRET" in portal.sinric.pro
5151#### Define callback routine(s)
5252```C++
5353bool onPowerState(const String deviceId, bool &state) {
54- Serial.printf("device %s turned %s\r\n, deviceId.c_str(), state?"on":"off");
54+ Serial.printf("device %s turned %s\r\n" , deviceId.c_str(), state?"on":"off");
5555 return true; // indicate that callback handled correctly
5656}
5757```
@@ -81,7 +81,7 @@ Syntax is
8181```
8282Example
8383``` C++
84- SinricProSwitch& mySwitch = SinricPro.add<SinricProSwitch>(" 5daf50cff082f27422a6f5b8 " );
84+ SinricProSwitch& mySwitch = SinricPro.add<SinricProSwitch>(" YOUR-DEVICE-ID-HERE " );
8585```
8686
8787---
@@ -92,13 +92,13 @@ Syntax is
9292```
9393Example 1
9494``` C++
95- SinricProDoorbell& myDoorbell = SinricPro[" 5daf50cff082f27422a6f5b8 " ];
95+ SinricProDoorbell& myDoorbell = SinricPro[" YOUR-DEVICE-ID-HERE " ];
9696 myDoorbell.sendDoorbellEvent();
9797```
9898
9999Example 2 (alternatively)
100100``` C++
101- SinricPro[" 5daf50cff082f27422a6f5b8 " ].as<SinricProDoorbell>().sendDoorbellEvent();
101+ SinricPro[" YOUR-DEVICE-ID-HERE " ].as<SinricProDoorbell>().sendDoorbellEvent();
102102```
103103
104104
You can’t perform that action at this time.
0 commit comments