flatcc component for ESP32 (esp-idf) implements the runtime part of the flatcc C library on ESP-IDF
- Clone or submodule this repo to
components/flatccin your ESP-IDF project. - Separately build
flatccfor your host architecture and generate with it the headers starting from your.fbsfile. - Add the headers in your ESP-IDF project (ie. under
generated/) - Build and enjoy flatbuffers!
Due to how code is generated by flatcc you will get warnings (which usually are then treated as errors)
from the compiler. You can override this by allowing certain warnings on the files where you are using
the flatcc generated code by putting in your CMakeLists.txt something like:
set_source_files_properties( myfileusingflatcc.c PROPERTIES COMPILE_FLAGS "-Wno-misleading-indentation" )
- Fully integrate also compiler into system (so fully integrate step 2 in Usage list)
Apache License 2.0