sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
Other
236 stars 125 forks source link

Error in Sinric Pro Doorbell #167

Closed primevix closed 3 years ago

primevix commented 3 years ago

I got this error while compiling the Doorbell code.

SinricPro 2.9.2 ArduinoJson 6.12.0 WebSockets 2.3.5

error

Error Msg.

In file included from C:\Users\brew\Documents\Arduino\doorbell\doorbell.ino:17:0: C:\Users\brew\Documents\Arduino\libraries\SinricPro\src/SinricPro.h: In function 'void setupSinricPro()': C:\Users\brew\Documents\Arduino\libraries\SinricPro\src/SinricPro.h:206:13: error: 'DeviceType& SinricProClass::add(DeviceId) [with DeviceType = SinricProDoorbell; DeviceId = SinricProId<DeviceId_Bin_t>]' is protected DeviceType& SinricProClass::add(DeviceId deviceId) { ^ doorbell:69:47: error: within this context SinricPro.add<SinricProDoorbell>(DOORBELL_ID); ^

sivar2311 commented 3 years ago

Sorry there was an old line of code in the example. This is fixed now, please try the updated example (https://github.com/sinricpro/esp8266-esp32-sdk/blob/a0e67d39e52dc6a18f24c49d8ba7ebe9a149e955/examples/doorbell/doorbell.ino#L85)

stale[bot] commented 3 years ago

This issue has gone quiet. Spooky quiet. We currently close issues after 14 days of inactivity. It’s been at least 7 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks for being a part of the SinricPro community!

stale[bot] commented 3 years ago

Hey again! It’s been 14 days since anything happened on this issue, so our friendly robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks again for being a part of the SinricPro community!