writing a program that converts a string to an integer (similar to Java’s
Integer.parseInt() method or Python’s int() function). You program will receive ASCII strings from the UART, one
character at a time. It should convert each string of characters into an integer value that is passed to a provided
print function. Strings will be terminated using a semicolon (;) character and will contain one or more characters
in addition to the semicolon. Your program should be able to handle multiple strings concatenated together and
treat each string ending with a ‘;’ as a separate input. When processing strings, it should detect any invalid
characters within a string. Invalid characters are any characters other than ‘0’ through ‘9’ and ‘;’. If an invalid
character is detected then the rest of the string (i.e. all characters leading up to and including the next ‘;’) should
be received by the UART, but ignored. Your program should then use the print function to output an error
message and then continue processing the next string as a new string.