Communication between .ino and .cpp with functions [SOLVED]

pert:
this code:

     Serial.print(F("servo1_string["));

Serial.println(extract);
    Serial.print(F("] = "));
    Serial.println(servo1_string[extract]);



still won't work

To be clear, that code actually does work if servodata only contains single digit numbers but if any of the numbers have multiple digits then it no longer works as expected because you're adding multiple characters to servo1_string but only printing one character.

pert:
To be clear, that code actually does work if servodata only contains single digit numbers but if any of the numbers have multiple digits then it no longer works as expected because you're adding multiple characters to servo1_string but only printing one character.

Makes sense. Now I just need to convert the output so that I'm sending "180" instead of "495648" (49, 56, 48), lol :stuck_out_tongue:

Thanks!