apache / nuttx-apps

Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
https://nuttx.apache.org/
Apache License 2.0
264 stars 490 forks source link

Add support for protocol buffers (nanopb) #2362

Closed fdcavalcanti closed 2 months ago

fdcavalcanti commented 2 months ago

Hi everyone, please let me know if there's anything I can do to improve this PR. I'm not sure how this would go regarding the code license. Thanks!

Summary

This PR adds support for protocol buffers using nanopb. The Kconfig has an option to enable nanopb and another to compile the example, which is the "simple" example inside the download nanopb source.

Impact

Adds support for protocol buffers.

Testing

Tested using the "simple" example in the nanopb source code:

nsh> nanopb_example
Your lucky number was 13!
fdcavalcanti commented 2 months ago

I just realized that a bigger issue here is the location. I put this under 'netutils' because I had in mind using it in a socket example. But that's not really the optimal place, is it?

xiaoxiang781216 commented 2 months ago

I just realized that a bigger issue here is the location. I put this under 'netutils' because I had in mind using it in a socket example. But that's not really the optimal place, is it?

how about system folder?