Hi,
> 10 | #error Regenerate this file with the current version of nanopb generator.
> *This used to work fine without any issues few days ago when I started.*
This error means that the generator version that made the .pb.c/.pb.h
files does not match the version of the pb.h header.
You can check the generated file, it will have e.g.
#if PB_PROTO_HEADER_VERSION != 30
for nanopb 0.3.x series.
And the pb.h file in your nanopb directory similarly has the version
specification. Most likely you have a 0.4.x version generator with 0.3.x
version library.
--
Petteri