Open
Description
Describe the problem
The official Arduino Serial Plotter protocol specification documents two formats for labeling variables:
- labeled data points (
<label>:<value>
) - header
🐛 Labels defined via a data set header are not recognized.
To reproduce
Equipment
- Arduino board
You can also send the equivalent data directly to the web app if that is more convenient to you.
Steps
- Upload the following sketch to your Arduino board:
void setup() { Serial.begin(9600); while (!Serial) {} Serial.println("label0:\tlabel1:\tlabel2:"); } void loop() { for (byte value = 0; value < 4; value++) { for (byte variableOffset = 0; variableOffset < 3; variableOffset++) { Serial.print(value + variableOffset); Serial.print('\t'); } Serial.println(); } delay(100); }
- Open "Serial Plotter"
- Select "9600 baud" from the dropdown baud rate menu at the bottom right corner of the "Serial Plotter" window.
🐛 The variables are not labeled:
Expected behavior
Support for label headers.
OR
- Clear documentation of breaking change
- Comprehensive survey and repair of all important content broken by change
Version
Operating system
Windows
Operating system version
10
Additional context
The demo works as expected when using the Arduino IDE 1.8.19 Serial Plotter.
Examples of existing programs broken by this bug:
- https://docs.arduino.cc/tutorials/nano-33-ble-sense/get-started-with-machine-learning / https://blog.arduino.cc/2019/10/15/get-started-with-machine-learning-on-arduino/
- https://docs.arduino.cc/retired/getting-started-guides/IoT%20Prime%20-%20Experiment%2002
- https://github.com/arduino-libraries/Arduino_LSM9DS1/blob/master/examples/SimpleAccelerometer/SimpleAccelerometer.ino
- https://github.com/arduino-libraries/Arduino_LSM9DS1/blob/master/examples/SimpleGyroscope/SimpleGyroscope.ino
- https://github.com/arduino-libraries/Arduino_LSM9DS1/blob/master/examples/SimpleMagnetometer/SimpleMagnetometer.ino
- https://github.com/arduino-libraries/Arduino_LSM6DS3/blob/master/examples/SimpleGyroscope/SimpleGyroscope.ino
- https://github.com/arduino-libraries/Arduino_LSM6DS3/blob/master/examples/SimpleAccelerometer/SimpleAccelerometer.ino
- https://github.com/ArminJo/ServoEasing
A label header is more efficient than printing labels redundantly for each data point.
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details