kakopappa / sinric

Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
https://sinric.com
285 stars 166 forks source link

kakopappa brightness not updating on server. #397

Closed harymk closed 4 years ago

harymk commented 4 years ago

void setBrightnessOnServer(String deviceId, int value) { DynamicJsonDocument root(1024); Serial.println(value); root["deviceId"] = deviceId; root["action"] = "SetBrightness"; root["value"] = value; StreamString databuf; serializeJson(root, databuf); webSocket.sendTXT(databuf); }

kakopappa commented 4 years ago

Check whether the device id is correct

Also you should consider moving to sinric v2 https://sinric.pro . If you use the SDK in v2 you can avoid issues like this

On Sun, 8 Mar 2020 at 3:26 PM harymk notifications@github.com wrote:

void setBrightnessOnServer(String deviceId, int value) { DynamicJsonDocument root(1024); Serial.println(value); root["deviceId"] = deviceId; root["action"] = "SetBrightness"; root["value"] = value; StreamString databuf; serializeJson(root, databuf); webSocket.sendTXT(databuf); }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kakopappa/sinric/issues/397?email_source=notifications&email_token=ABZAZZUN6U72D2AR3RGXOFLRGNJD3A5CNFSM4LDXKLZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITLNGRQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZUD565LNQQ5CUMUTTLRGNJD3ANCNFSM4LDXKLZA .

harymk commented 4 years ago

kakopappa thanks. i forget that