/** * diagram client interface Power PWM (PID) Regler for StromLog * Version 0.06 * 31.03.2024 P. Rebesky * author Creator P.Rebesky * Copyright (©): 2024-2028 by Peter Rebesky * This code can use in private cases only. Every business or companies using of this codes or codes parts is required an approval of us (me) * Every private using can exchange some parts of code or modify some code-lines. This code is allowed change for private use only. * This software is basicly owned by Peter Rebesky and any comercial using is forbidden without approval of us (me). **/ #ifndef DIAGRAM_CLIENT_H_ #define DIAGRAM_CLIENT_H_ #include "global.h" #include "configPWR.h" #define BufferLength 720 int _historyPointer=0; int32_t _history[BufferLength][2]; const char HTTP_DIA_STYLE[] PROGMEM = "\r\n\r\n"; const char CANVAS[] PROGMEM =""; extern configPWR cPWR; //*********************** handle status for history ********************** void diagramPointerPlus(){ if(_historyPointer=BufferLength)y=0; } h += "}"; #ifdef DEBUG_VALUE Serial.println(_historyPointer); Serial.println(_history[i][0]); #endif return h; } //**** get raw diagram data *************************************************** String getRawData(){ String h = "Pointer:"; h+=_historyPointer; h+="&"; for(int i=0;i"; ret += ""; ret+=cPWR.getPName(); ret+=""; ret += FPSTR(HTTP_DIA_STYLE); ret += "
"; ret += "

Historie PWM-Modulation, Leistung in W

"; ret += "2500
"; ret += ""; ret += "

"; ret += FPSTR(CANVAS); ret += "\n"; return ret; } //*** end *** //**** load diagram data into buffer array from file ********************* int loadDiagramData(){ int oldPointer=0; return oldPointer; } //*** diagram manage end *** #endif //*** DIAGRAM_CLIENT_H_