add test ringbuffer
This commit is contained in:
parent
95a437b34f
commit
1aa5c835cb
|
@ -173,6 +173,11 @@ void callback(char* topic, byte* message, unsigned int length) {
|
||||||
DynamicJsonDocument json(512);
|
DynamicJsonDocument json(512);
|
||||||
deserializeJson(json, messageTemp);
|
deserializeJson(json, messageTemp);
|
||||||
grid_p = json["value"];
|
grid_p = json["value"];
|
||||||
|
|
||||||
|
//add to ringbuffer for testing
|
||||||
|
display_graph_ringbuffer[display_graph_ringbuffer_index] = grid_p;
|
||||||
|
if (display_graph_ringbuffer_index == 100)
|
||||||
|
display_graph_ringbuffer_index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Inverter - power
|
//Inverter - power
|
||||||
|
|
Loading…
Reference in a new issue