DroneBridge / ESP32

DroneBridge for ESP32. A secure & transparent telemetry link with support for WiFi and ESP-NOW. Supporting MAVLink, MSP, LTM or any other protocol
https://dronebridge.github.io/ESP32/
Apache License 2.0
382 stars 107 forks source link

Make the v2.0 API RESTful #76

Closed mmalecki closed 4 months ago

mmalecki commented 4 months ago

Fixes #74. This makes changes in the frontend_src, but I'm struggling to find any automated process that spits out a index.html with the minified versions, and so wasn't able to test this on real hardware just yet. Is that build manual right now? If so, would you be open to automating it a little? I was thinking we could minify the .js files (toastify and our code) separately and including them with <script src> tags. That leads to nicer, piece-by-piece caching (IMO, and probably wholly irrelevant here) and easier build.

seeul8er commented 4 months ago

A bit more automation would be great. I would oppose to more files since the HTTP server of the ESP32 is not very powerful and I had issues in the past where too many connection requests caused failure. See also #53 for reference.

mmalecki commented 4 months ago

That sounds good, thank you! It should be good to merge it in, I don't think I'm able to. Appreciate the context around the single file bundle. Will see if I can make webpack do our bidding here.