pkerspe / ESP-StepperMotor-Server

Turn your ESP32 into a complete stepper motor control server with web UI, REST API and serial control interface
MIT License
225 stars 39 forks source link

Malformed JSON returned by /api/switches/status and /api/switches/status?id=<id> API #34

Closed adpmdrones closed 1 year ago

adpmdrones commented 1 year ago

The /api/switches/status and /api/switches/status?id= does not return a correct JSON

i.e. { status: 0000000000000011 }

the correct JSON must be

{ "status": "0000000000000011" }

pkerspe commented 1 year ago

@adpmdrones thanks for reporting this issue, I just pushed a possible fix. I am currently traveling and thus could not test it on a real ESP32, but it should be fine now (I hope).

Please test release v0.4.9 and let me know if it works for you now https://github.com/pkerspe/ESP-StepperMotor-Server/releases/tag/v0.4.9