Need to help for make a new code

I’d like to use Terminal or something to put the data inside of “receivedBuffer”

byte uartParse()
{
    byte modeIndex = 0;
    if(strstr(receivedBuffer, "CALIBRATION") != NULL) 
        modeIndex = 1;
    else if(strstr(receivedBuffer, "EXIT") != NULL) 
        modeIndex = 3;
    else if(strstr(receivedBuffer, "SATCAL") != NULL)   
        modeIndex = 2;
    return modeIndex;
}

I’ve edited your code by adding three backticks at the beginning and end, so that it displays correctly.
Three backticks looks like this:
```
Please add them yourself in future otherwise your unformatted code will be removed.

Please explain in more detail what it is that you’re trying top achieve.

Pete.