We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da9ca2 commit a0e67d3Copy full SHA for a0e67d3
examples/doorbell/doorbell.ino
@@ -82,7 +82,7 @@ void setupWiFi() {
82
// setup function for SinricPro
83
void setupSinricPro() {
84
// add doorbell device to SinricPro
85
- SinricPro.add<SinricProDoorbell>(DOORBELL_ID);
+ SinricProDoorbell& myDoorbell = SinricPro[DOORBELL_ID];
86
// setup SinricPro
87
SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); });
88
SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
0 commit comments