arduplot icon indicating copy to clipboard operation
arduplot copied to clipboard

FR: Reset of data

Open cybertza opened this issue 4 years ago • 5 comments

Hi I have used the plugin a few times, but find it frustrating with the ESP32.

I have a situation where if the unit boots it creates a ton of useless items, image

Can't convert b'status:' to float. it's zeroed out
Can't convert b'temp:' to float. it's zeroed out
Can't convert b'Change' to float. it's zeroed out
Can't convert b':' to float. it's zeroed out
Can't convert b'N' to float. it's zeroed out
Can't convert b'Change' to float. it's zeroed out

my serial output looks like this and works fine in serial plotter: Delay : 250 Last : 2725 Reading : 2750 status: 0 Change : Y Change (old-new): -25

image

Anyway, So in short, and understading that these are 2 seperate issues, but if the ESP reboots it will drop information on the serial as part of the bootloader, this also confuses the metrics, so the one request is that a "clear or reset" button be available.

cybertza avatar Dec 06 '22 02:12 cybertza

I also see that you currently just handle the values, did a quick sample of the example you provide https://wokwi.com/projects/350261873610850898 image

So i assume you just use the 2 values as floats, but what you could do if you wanted to would be the following, is if you have a b aka Can't convert b'status:' then assume a key value pair, with a delimiter of '\t' || ':' || '='and try to link them that way.

that said, its just an idea, but a few tweaks could go a long way for adoption, and thanks for making this in the first place.

cybertza avatar Dec 06 '22 02:12 cybertza

@cybertza This is to provide the compatible tool with the Arduino IDE serial plotter, so it assumes the serial out put the series of numbers. And it can handle more than two numbers.

What you suggested is one way of doing it, but I'd rather keep it as is since, I want it to be compatible to the Arduino IDE's plotter at this time.

Thank you again.

yhur avatar Dec 06 '22 04:12 yhur

Delay : 250 Last : 2725 Reading : 2750 status: 0 Change : Y Change (old-new): -25

Ok thank you, the recomendation is to improve compatibility with the ard serial monitor, as the arduino serial monitor works with the line as shown above.

image

cybertza avatar Dec 06 '22 09:12 cybertza

Hmm. Interesting. I didn't know there is a feature like this with Arduino IDE.

So when the serial outputs like this, it will pick up the legend.

data1 : value1 data2 : value2 data3 : value3 ...

By the way, do you know why there are redundant color boxes?

yhur avatar Dec 07 '22 04:12 yhur

@cybertza Since the Arduino IDE functionality doesn't seem to be explainable for the consistency and clarity for now, I would like to wait till it gets cleared, and need to close this for now.

yhur avatar Dec 12 '22 22:12 yhur