nanopb-integration
SolidUse when integrating, porting, configuring, or debugging nanopb Protocol Buffers, .proto generation, pb_encode, pb_decode, callbacks, fixed sizes, or embedded serialization
AI & Automation 22 stars
2 forks Updated 1 weeks ago MIT
Install
Quality Score: 79/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# nanopb Integration
## Overview
Use this skill to integrate nanopb by controlling schema size, generated options, callbacks, and buffer ownership. Embedded protobuf failures usually come from mismatched generated files, unbounded fields, or callback misuse.
## When To Use
Use this skill when:
- The user wants Protocol Buffers on an MCU using nanopb.
- The task involves `.proto`, `.options`, `nanopb_generator.py`, `pb_encode`, `pb_decode`, repeated fields, strings, bytes, callbacks, or fixed-size arrays.
- Encoding/decoding fails, messages are truncated, memory usage is too high, or host and device schemas mismatch.
Do not use this skill for general JSON/INI parsing. Use `embedded-data-parsing-libs` instead.
## First Questions
Ask for:
- nanopb version and how code generation runs.
- `.proto`, `.options`, generated `.pb.c/.pb.h`, and host-side schema version.
- Transport/storage where messages are sent.
- Max message size, RAM budget, and whether streaming decode is needed.
- Current encode/decode error and sample payload if available.
## Integration Checklist
1. Lock schema and generated files together.
Regenerate `.pb.c/.pb.h` whenever `.proto` or `.options` changes.
1. Bound variable fields.
Use nanopb options for max string, bytes, repeated field, or callback-based streaming.
1. Size buffers explicitly.
Know max encoded size and transport frame limits.
1. Check return values.
Always inspect `pb_encode`/`pb_decode` failure and error text.
1. Vali...
Details
- Author
- easyzoom
- Repository
- easyzoom/aix-skills
- Created
- 2 months ago
- Last Updated
- 1 weeks ago
- Language
- Python
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
freertos-plus-tcp-integration
Use when integrating, porting, configuring, or debugging FreeRTOS+TCP networking, network interface drivers, buffer management, DHCP, sockets, or embedded TCP/IP issues
22 Updated 1 weeks ago
easyzoom AI & Automation Solid
nr-micro-shell-integration
Use when integrating, porting, configuring, or debugging nr_micro_shell command consoles, UART shell input, command tables, or tiny embedded CLI behavior
22 Updated 1 weeks ago
easyzoom AI & Automation Solid
freemodbus-integration
Use when integrating, porting, configuring, or debugging FreeModbus RTU, ASCII, TCP, serial ports, timers, events, register callbacks, or Modbus protocol issues
22 Updated 1 weeks ago
easyzoom