Add GET /all bulk read endpoint + build fixes for newer esp-idf#10
Open
Superheld wants to merge 1 commit into
Open
Add GET /all bulk read endpoint + build fixes for newer esp-idf#10Superheld wants to merge 1 commit into
Superheld wants to merge 1 commit into
Conversation
- httpd: add a `GET /all` handler returning every readable key as a single JSON object, streamed via chunked responses. Lets clients read the whole state in one request instead of one HTTP call per key. - mqtt: add a `default:` case to the event switch so the build stays warning-clean under -Werror=switch on newer esp-idf (which adds events such as MQTT_EVENT_DELETED). - kv_mapping: fix a typo in the `kvui32_mappings` extern declaration (was `kviui32_mappings`), so the array can actually be referenced. All additive; existing endpoints and behaviour are unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
GET /all— a new HTTP handler that returns every readable key as a single JSON object, streamed via chunked responses. Clients can read the full controller state in one request instead of one HTTP call per key (helpful for polling integrations, e.g. Home Assistant).default:case to the event switch so the firmware builds warning-clean under-Werror=switchon newer esp-idf, which adds events such asMQTT_EVENT_DELETED.kvui32_mappingsextern declaration (waskviui32_mappings) so the array can actually be referenced.Notes
main/core/mqtt/mqtt.cis the regenerated output of the.templatechange (kept in sync).espressif/idf:release-v3.3;firmware.elflinks and contains the new handler.Example:
🤖 Generated with Claude Code