Closed harymk closed 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 .
kakopappa thanks. i forget that
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); }