Skip to content

Commit bb52038

Browse files
committed
Fixed readme
1 parent 1502d75 commit bb52038

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ SIGNING_KEY may be named "APP SECRET" in portal.sinric.pro
5151
#### Define callback routine(s)
5252
```C++
5353
bool 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
```
8282
Example
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
```
9393
Example 1
9494
```C++
95-
SinricProDoorbell& myDoorbell = SinricPro["5daf50cff082f27422a6f5b8"];
95+
SinricProDoorbell& myDoorbell = SinricPro["YOUR-DEVICE-ID-HERE"];
9696
myDoorbell.sendDoorbellEvent();
9797
```
9898

9999
Example 2 (alternatively)
100100
```C++
101-
SinricPro["5daf50cff082f27422a6f5b8"].as<SinricProDoorbell>().sendDoorbellEvent();
101+
SinricPro["YOUR-DEVICE-ID-HERE"].as<SinricProDoorbell>().sendDoorbellEvent();
102102
```
103103

104104

0 commit comments

Comments
 (0)