How to Parse a Char Array into Seperate Char and Int Variables.

(deleted)

Have a look at the parse example in Serial Input Basics

...R

Here is some code that will do the parsing, I did not implement the reset because you should be able to figure this out from here.

If not, come back and we will help more, but at least try.

For the converting the string to an int, please google atoi.

char  received_msg[] = 09:35:16|08-16-2019|1|2|3|4;

void setup() 
{

  char* token;
  token = strtok(received_msg,"|");
  while(token)
  {
    Serial.println(token);
    token = strtok(NULL,"|");

  }
  
}

(deleted)

If memory usage isn't an issue, you could try sscanf, here is an example wpZ6Aw - Online C++ Compiler & Debugging Tool - Ideone.com (also note the increased arrays sizes for the null characters)

(deleted)

What happens if you get a corrupted entry? Would be good to check if one of your strtok() returns NULL along the way

(deleted)

As you defined the function as returning a book, ideally (for type consistency and being semantically correct) you should return true or false.not 0 and 1. (I understand that works but I find it ugly :slight_smile: )