Csv file cell data to display in label

need help to display csv single cell data in different labels


Mitapptest - Sheet1.csv (64 Bytes)

Your csv:

Temperature,29
Rain,25
Humitity,71
SOC,66
Batt v,51
PV,1250

This Bluetooth pattern should have code you can steal:

BlueTooth_delimiter_sample.aia(3.4 KB) global message

...

For your data, you could keep a dictionary with text keys appearing in column 1 of the table,
and component blocks for the Labels that should get the incoming data from column 2 into their Label.Text attributes.

A Lookup in Pairs list block and a two column table could be used instead of a dictionary.

Here's how to process the csv text:

  split the csv text at '\n' to get a list of lines
  for each line,
    split it at ',' to get a list of text key and number value
    look up the Label for the text key
    set the .Text of that Label to the value.
  end line loop

thanks