I have changed buffer from a char array to a string, seems to make things a bit simpler.
I don't see that it is much simpler, particularly as you convert the String to a char array anyway.
Use a char array and stick with it.
I have changed buffer from a char array to a string, seems to make things a bit simpler.
I don't see that it is much simpler, particularly as you convert the String to a char array anyway.
Use a char array and stick with it.