LIFsCode / ELOC-3.0

Firmware for ELOC 3.0 Hardware
MIT License
3 stars 3 forks source link

Unformatted string field value for "cmd" in JSON response #32

Closed EDsteve closed 11 months ago

EDsteve commented 11 months ago

The JSON response from the firmware has an unquoted string value for the "cmd" field. For example, sending the command "getStatus" returns:

{"ecode" : 0, "cmd" : getStatus, "payload....

The correct JSON formatted response must the the value for "cmd" in quotes like:

{"ecode" : 0, "cmd" : "getStatus", "payload...