Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void setupSinricPro() {
// setup SinricPro
SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); });
SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
SinricPro.restoreDeviceStates(true);
//SinricPro.restoreDeviceStates(true); // Uncomment to restore the last known state from the server.
SinricPro.begin(APP_KEY, APP_SECRET);
}

Expand Down
2 changes: 1 addition & 1 deletion examples/PowerSensor/PowerSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void setupSinricPro() {
myPowerSensor.onPowerState(onPowerState);

// setup SinricPro
SinricPro.restoreDeviceStates(true);
//SinricPro.restoreDeviceStates(true); // Uncomment to restore the last known state from the server.
SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); });
SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
SinricPro.begin(APP_KEY, APP_SECRET);
Expand Down
4 changes: 2 additions & 2 deletions examples/Switch/MultiSwitch_advance/MultiSwitch_advance.ino
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ void setupSinricPro()
mySwitch.onPowerState(onPowerState);
}

SinricPro.begin(APP_KEY, APP_SECRET);
SinricPro.restoreDeviceStates(true);
//SinricPro.restoreDeviceStates(true); // Uncomment to restore the last known state from the server.
SinricPro.begin(APP_KEY, APP_SECRET);
}

void setup()
Expand Down
1 change: 1 addition & 0 deletions examples/Switch/Switch/Switch.ino
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ void setupSinricPro() {
// setup SinricPro
SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); });
SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
//SinricPro.restoreDeviceStates(true); // Uncomment to restore the last known state from the server.
SinricPro.begin(APP_KEY, APP_SECRET);
}

Expand Down
2 changes: 1 addition & 1 deletion examples/temperaturesensor/AHT10/AHT10.ino
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ void setupSinricPro() {
// setup SinricPro
SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); });
SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
//SinricPro.restoreDeviceStates(true); // Uncomment to restore the last known state from the server.
SinricPro.begin(APP_KEY, APP_SECRET);
SinricPro.restoreDeviceStates(true); // get latest known deviceState from server (is device turned on?)
}

// main setup function
Expand Down
4 changes: 2 additions & 2 deletions examples/temperaturesensor/DHT22/DHT22.ino
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ void setupSinricPro() {
// setup SinricPro
SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); });
SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
SinricPro.begin(APP_KEY, APP_SECRET);
SinricPro.restoreDeviceStates(true); // get latest known deviceState from server (is device turned on?)
//SinricPro.restoreDeviceStates(true); // Uncomment to restore the last known state from the server.
SinricPro.begin(APP_KEY, APP_SECRET);
}

// main setup function
Expand Down
2 changes: 1 addition & 1 deletion examples/temperaturesensor/HTU21D/HTU21D.ino
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ void setupSinricPro() {
// setup SinricPro
SinricPro.onConnected([](){ Serial.printf("Connected to SinricPro\r\n"); });
SinricPro.onDisconnected([](){ Serial.printf("Disconnected from SinricPro\r\n"); });
//SinricPro.restoreDeviceStates(true); // Uncomment to restore the last known state from the server.
SinricPro.begin(APP_KEY, APP_SECRET);
SinricPro.restoreDeviceStates(true); // get latest known deviceState from server (is device turned on?)
}

// main setup function
Expand Down