#include "Streaming.h"

String commandline = "";

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Start");
}

void loop() {
  // put your main code here, to run repeatedly:
  HandleSerial();
}

void HandleSerial(){

  while (Serial.available()){
     char c = Serial.read();
     if (c >= ' ') commandline += c;
     if (c == '\n') {
                    Serial << commandline << "\n\n";
                    SplitAndPrint(',');
                    commandline = "";
                  }
  }

}

void SplitAndPrint(char delimiter){
    int No = 1;
    int p = commandline.indexOf(delimiter);
    while (p > 0 ) {
        String s = commandline.substring(0,p);
        Serial << "This is parameter No " << No << " = " << s << "\n";
        commandline = commandline.substring(p+1);
        p = commandline.indexOf(delimiter);
        No++;
    }
    if (commandline.length() > 0) 
       Serial << "This is parameter No " << No << " = " << commandline << "\n";;
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5