Does the library identify when it ends and starts the Struct in the buffer?
george_santiago
Hi Renzo
The library provides ResponseContainer receiveMessageUntil(char delimiter = '\0'); which allows sending a string with a "\0" delimiter at the end. With this, the Receiver, when reading the buffer, identifies when a message starts and ends.
Does the same happen when sending a Struct? I was analyzing the library code (I'm a beginner), but I didn't identify which strategy is used to identify the beginning and end of a Struct in the buffer.
How does ResponseStructContainer receiveMessage(const uint8_t size); know/identify when a Struct ends and starts another Struct in the buffer?
If there is no such identification, if the developer makes a mistake in the buffer reading strategy, will this cause a memory leak?
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.