uploaded 6 months ago
ESP-IDF Google Flatbuffers Support (C++)


![logo]( FlatBuffers

**FlatBuffers** is a cross platform serialization library architected for
maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.


## Quick Start

1. Import esp-idf flatbuffers into your project

    ``` add-dependency "uktech/espidf-flatbuffers^23.5.26"

2. Define your flatbuffer schema (`.fbs`)

    Write the [schema]( to define the data you want to serialize. See [monster.fbs]( for an example.

3. Generate code for your language(s)

    Use the `flatc` compiler to take your schema and generate language-specific code:

    ./flatc --cpp monster.fbs
    Which generates `monster_generated.h` file.

4. Serialize data

    Use the generated code, as well as the `FlatBufferBuilder` to construct your serialized buffer. ([`C++` example](

5. Transmit/store/save Buffer

    Use your serialized buffer however you want. Send it to someone, save it for later, etc...

6. Read the data

    Use the generated accessors to read the data from the serialized buffer.
    It doesn't need to be the same language/schema version, FlatBuffers ensures the data is readable across languages and schema versions. See the [`Rust` example]( reading the data written by `C++`.


Supports all targets

License: Apache-2.0

To add this component to your project, run: add-dependency "uktech/espidf-flatbuffers^23.5.26-rc1"

or download archive


  • Downloaded in total
    Downloaded in total 6 times
  • Downloaded this version
    This version: 5 times


uktech/espidf-flatbuffers version: 23.5.26-rc1