Skip to content

Commit 71f2e33

Browse files
committed
Fixed switch example
1 parent 07812fe commit 71f2e33

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## Version 2.7.1
3+
Fixed:
4+
- Switch example
5+
`SinricProDevice.getDeviceId()` returns since version 2.7.0 a `SinricProId` instead of char*
26

37
## Version 2.7.0
48
New:

examples/Switch/Switch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void handleButtonPress() {
8181
SinricProSwitch& mySwitch = SinricPro[SWITCH_ID];
8282
// send powerstate event
8383
mySwitch.sendPowerStateEvent(myPowerState); // send the new powerState to SinricPro server
84-
Serial.printf("Device %s turned %s (manually via flashbutton)\r\n", mySwitch.getDeviceId(), myPowerState?"on":"off");
84+
Serial.printf("Device %s turned %s (manually via flashbutton)\r\n", mySwitch.getDeviceId().toString().c_str(), myPowerState?"on":"off");
8585

8686
lastBtnPress = actualMillis; // update last button press variable
8787
}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"maintainer": true
1414
}
1515
],
16-
"version": "2.7.0",
16+
"version": "2.7.1",
1717
"frameworks": "arduino",
1818
"platforms": [
1919
"espressif8266",

src/SinricProConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// Version Configuration
2626
#define SINRICPRO_VERSION_MAJOR 2
2727
#define SINRICPRO_VERSION_MINOR 7
28-
#define SINRICPRO_VERSION_REVISION 0
28+
#define SINRICPRO_VERSION_REVISION 1
2929
#define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION)
3030
#define SINRICPRO_VERSION_STR "SinricPro (v" SINRICPRO_VERSION ")"
3131

0 commit comments

Comments
 (0)