7 ms·
Since you mention it, check out the experimental RPC support: https://github.com/google/libnop/blob/master/examples/interface.cpp https://github.com/google/lib
by coreytabaka 8y ago
Since you mention it, check out the experimental RPC support:
https://github.com/google/libnop/blob/master/examples/interface.cpp https://github.com/google/libnop/blob/master/examples/interf...
https://github.com/google/libnop/blob/master/include/nop/rpc/interface.h https://github.com/google/libnop/blob/master/include/nop/rpc...
I haven't documented it yet since it's not fully baked, but it's quite functional nonetheless. I have a working prototype of RPC over USB between a host PC and a Cortex-M micro controller. The ability to define constexpr dispatch tables is very convenient in a micro controller environment.
- sytelus 8y agoWhat transport do you use? http? Do you use any dependency for handling transport layer? I haven’t seen a good clean dependency less headed-only approach for this yet.
- coreytabaka 8y agoThe library is transport agnostic. There is a Reader/Writer abstraction to adapt to any transport you like. https://github.com/google/libnop/blob/master/docs/getting-started.md#readerwriter-interfaces https://github.com/google/libnop/blob/master/docs/getting-st...