I’m about to do tests using your excellent library.
When reading the documentation, I got a doubt when using receiveInitialMessage.
In the library example, the Struct MessageTemperature and MessageHumidity are used.
For the receiver to identify the message (if about temperature or humidity) it is necessary to read the first part of the struct char type;.
However, if the developer creates a third struct to report the distance, but with 7 bytes in the identifier: char type:
That would cause a “memory leak” or a bug in “receiveInitialMessage”, correct?
Maintaining a repository (or site or forum) is a lot like tending to a garden - it requires constant care and attention to keep it thriving. If you're a skilled gardener (or coder!) and want to help keep our repository blooming, we'd love to have you on board! We're also looking for talented writers and forum moderators to help us grow our community. Interested in joining our team? Don't hesitate to reach out and let us know how you can contribute!
Are you a fan of electronics or programming? Share your knowledge with others, write a simple tutorial or how to make a great project Contact me: firstname.lastname@example.org
The content displayed on this website is protected under a CC BY-NC-ND license. Visitors are prohibited from using, redistributing, or altering any content from this website for commercial purposes, including generating revenue through advertising. Any unauthorized use is a violation of the license terms and legal action may be taken against individuals or entities found to be in violation.
You must also provide the link to the source.