Anyone knows how to change this to work with 3 integers instead?

talk to @errols ...

if you are sure you are receiving 3 data, just add one
strtokIndx = strtok(NULL, ",");

and use something like

    integerFromPC = atoi(strtokIndx);     // convert this part to an integer

to extract the data