How does ASCII encoding translate to allocated Bytes?

Hi everyone, I was reading through the ArduinoBLE Library Documentation, and found the examples for Service Design Patterns quite confusing as I do not remember much about ASCII encoding. I would appreciate it if someone could explain to me how the Accelerometer X,Y,Z translates to occupying 11 bytes when encoded. See the figure below:

Thank you!

"200,133,150" is a 11 chars length string, maybe you want tokenize the string in 3 byte?

1 Like

Oh it didnt occur to me that the data was of type String. I believe the string has 11 characters where each char is 1byte. Correct me if I’m wrong :slight_smile:

Yes, you're right 11 bytes, one for each char.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.