Get uart data as string with different data formats

You can take a look at this to see if it’s enough for your use case.