I followed an Arduino API Plotly example and was able to create a scatter plot with x, y.
But what if I want to Post multiple Y ? How does that work ?
Here is how it works with 1 Y, how to adjust to 2 ? I have 2 tokens and I can update the code ?
void loop() {
float ext_temp, int_temp;
sensors.requestTemperatures();
ext_temp = (sensors.getTempCByIndex(1) * 1.8 + 32.0);
int_temp = (sensors.getTempCByIndex(0) * 1.8 + 32.0);
// now let's stream data to plotly
graph.plot( counter, ext_temp, tokens[0]);
counter++;
delay(10000);
}