LibreSolar / esp32-edge-firmware

Firmware for CAN/UART to WiFi/BLE gateway using ESP32
Apache License 2.0
26 stars 12 forks source link

GET handler #6

Closed martinjaeger closed 3 years ago

martinjaeger commented 3 years ago

Write handler to create endpoints for GET requests.

A user (ie. a web app) should be able to get a response when requesting endpoints matching the thingset data structure. A successful request means that the endpoint exists (ie. /data/output/Bat_V or /pub/Bat_A). With a successful request the user should receive a json response, otherwise a 40x status code.

martinjaeger commented 3 years ago

First version was implemented in commits d0df27d8a867fb94cae3214cbaffa721138093c0 and 0c15c06b35a5630bd72fcfeb4ffe21338d783205.

The output data nodes of the device connected via serial is now accessible via http://data-manager-ip/ts/serial/output.

Gretel5X commented 3 years ago

@martinjaeger I think this can be closed now? PR #11 did all that

martinjaeger commented 3 years ago

Agreed.