imabot2 / serialib

Serial library for Linux & Windows
MIT License
195 stars 45 forks source link

New Example file #22

Closed odbee closed 1 year ago

odbee commented 1 year ago

hello, i have seen other people in the issues having struggled with this so i would like to emphasize again that it would be VERY helpful if you created a third example file, that goes through receiving and sending strings, chars and bytes (especially receiving) for us people who arent fully proficient in this code.

it would help alot to have a fully functional cpp file that uses these functions for us to understand.

I am very sure the user from this (https://github.com/imabot2/serialib/issues/11) issue knew that the function readBytes() exists but he, like me struggled with using this function, because there is no proper documentation or example for it.

thanks in advance!

imabot2 commented 1 year ago

Hi, could you tell me more details about what kind of example you expect more precisely?

odbee commented 1 year ago

an example for readString would help A LOT, took me ages to figure out by myself, especially with the amount of documentation prvided

imabot2 commented 1 year ago

Here are some examples: readBytes / writeBytes readString / writeString