OpenADR 3.0 (Open Automated Demand Response) JSON codec (PROTOCORE_ENABLE_OPENADR). More...
#include "protocore_config.h"Go to the source code of this file.
OpenADR 3.0 (Open Automated Demand Response) JSON codec (PROTOCORE_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:
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.