Hi,
_serial_rcvbuf starts with an "_", that means it is an internal variable which you shouldn't use inside your main program.
Read the bytes with one of the provided methods (*not* starting with an "_") like serial_hw_read() or serial_hw_data, that way the library can take care of the order of the bytes.
_serial_rcvbuf is a ring buffer, if you really insist on reading directly from there, you need to respect and modify the read and write pointers.
If you need a string within your main program, the usual way would be to read from the library byte-by-byte and transfer the content from the (library-managed transparent) receive buffer to the main-program buffer.
Greets,
Kiste
Am Freitag, 15. Januar 2021, 09:22:17 MEZ hat vsurducan <
vsur...@gmail.com> Folgendes geschrieben:
To view this discussion on the web visit
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qsJMhP7BkPjhGHqkE0d-RTz3KGcFQ9HvVL1P0EfTc1F2A%40mail.gmail.com.