|
DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
OpenADR 3.0 (Open Automated Demand Response) JSON codec (DETWS_ENABLE_OPENADR). More...
Go to the source code of this file.
OpenADR 3.0 (Open Automated Demand Response) JSON codec (DETWS_ENABLE_OPENADR).
OpenADR 3.0 is the demand-response protocol as a REST/JSON API (over HTTP + OAuth2, both already shipped): a VTN (server) posts event objects to VENs, and VENs post report objects back. This builds the two core JSON objects into a caller buffer, so a device is an OpenADR 3.0 VEN over the existing HTTP client/server:
programID, eventName, and an intervals array each carrying a SIMPLE/price/ LOAD_CONTROL payload point (start + duration + a numeric value) - a demand-response signal.programID, eventID, a resourceName, and a reading (a value at a point in time) - the VEN's telemetry back to the VTN.Pure JSON text framing (strings escaped), zero heap, no stdlib, host-testable; the OAuth2 token + HTTP transport are the existing services.
Definition in file openadr.h.