Hi,
> I would like to replace the client PC with an Arduino Due (w/ an Ethernet
> Shield), which lead me to nanopb. I am very confused about the .proto file,
> how to start, and what needs to be done in order for the Due to acquire the
> data coming from the server.
Let's start with the .proto file. Download the nanopb binary package for
your operating system. Then run this command:
...path to nanopb.../generator-bin/protoc --nanopb_out=. whatever.proto
This should give you two files, whatever.pb.h and whatever.pb.c, which
you can include in your project. Take a look at whatever.pb.h, it has
the C structures you can use for your messages.
Then take a look at examples/simple. Perhaps even get that running on
your Arduino before modifying it. It will show the basic way to encode
and decode messages.
--
Petteri