MCPcopy Create free account
hub / github.com/UtilitechAS/amsreader-firmware / monthplotJson

Method monthplotJson

lib/SvelteUi/src/AmsWebServer.cpp:686–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686void AmsWebServer::monthplotJson() {
687 if(!checkSecurity(2))
688 return;
689
690 if(ds == NULL) {
691 notFound();
692 } else {
693 AmsJsonGenerator::generateMonthPlotJson(ds, buf, BufferSize);
694 addConditionalCloudHeaders();
695 server.sendHeader(HEADER_CACHE_CONTROL, CACHE_CONTROL_NO_CACHE);
696 server.sendHeader(HEADER_PRAGMA, PRAGMA_NO_CACHE);
697 server.sendHeader(HEADER_EXPIRES, EXPIRES_OFF);
698
699 server.setContentLength(strlen(buf));
700 server.send(200, MIME_JSON, buf);
701 }
702}
703
704// Deprecated
705void AmsWebServer::energyPriceJson() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected