Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    See the accepted answer here. stackoverflow.com/questions/37514873/… Commented May 10, 2024 at 2:31
  • 2
    dont't use dynamic memory allocation. pass a buffer on stack to the function Commented May 10, 2024 at 4:17
  • You might want to read about the reasons to vote down. In your case your question shows no effort of research on your issue, neither in the web nor on this site. However, you are supposed to do this before asking. (Disclaimer: I did not vote down.) Commented May 10, 2024 at 5:40
  • 1
    @Juraj As a general advice, I don't agree. There are good reasons for dynamic memory allocation, even on an Arduino. It depends on the software design. Commented May 10, 2024 at 5:44
  • 1
    We just looked at your question, that's it. We cannot see what you do else, and so it does not matter to us. Your post does not show any reference how you tried to solve your issue yourself and why you failed. If you think this bloats your question, well, it helps. Otherwise you'll receive irrelevant or misleading answers, which waste more of your and our time. Commented May 10, 2024 at 12:04