devWaves / SwitchBot-MQTT-BLE-ESP32

Allows for multiple SwitchBot bots and curtains to be controlled via MQTT sent to ESP32. ESP32 will send BLE commands to switchbots and return MQTT responses to the broker. Also supports Temperature, Motion, Contact sensors
MIT License
531 stars 66 forks source link

errorJSONvalue when sending "PRESS" #85

Closed ogerrard closed 1 year ago

ogerrard commented 1 year ago

See attached image, I'm sending the command and receiving this error.

Screenshot 2022-07-10 at 22 10 49
ogerrard commented 1 year ago

Issue was sending json "PRESS" when it should've just been raw PRESS

devWaves commented 1 year ago

@ogerrard glad u figured it out and thanks for closing the issue

double quotes are used to signify a string value so the raw value is a simple string and not a full json string. Good u got it going though. cheers