Library for crafting rai_node
rpc calls and parsing their responses to be compatible with nano_lib
.
This library was split into two main categories:
- Parsing json strings using cJSON into a more usable format
- Helper websocket calls that wrap the json parsers
If you are developing a standalone device/application, the websocket calls will probably be more friendly to quickly get your project running. The project can be built without any libwebsocket dependencies by disabling it in the Kconfig.
Unit tests can be used by selecting this library with a target using the ESP32 Unit Tester.
make flash TEST_COMPONENTS='nano_parse' monitor
The unit tests (in the test
folder) is a good source of examples on how to use this library. Be careful about how strings are escaped.