Support ESP-IDF v4.1 - Fixed SPI Support and improved RPC
This introduces a breaking change around the various "tcp_adapter" API's. Nesper defaults to the newer ESP-IDF v4.1 by default now, however the v4.0 API's can be enabled by passing -d:ESP_IDF_V4_0
when running the Nim compiler.
Changes:
- Support for ESP-IDF v4.1 including reworked tcp/ip adapters API (see
nesper/net_utils.nim
) - Fallback to ESP-IDF v4.0 apis using the define
ESP_IDF_V4_0
- Fixes and ergonomic improvements for SPI api
- Improvements to RPC Mpack Queue (
nesper/servers/rpc/rpcsocket_queue_mpack.nim
)- Now supports responses larger than default socket memory size, e.g. 4096+ bytes)
- Fixed multi-threaded memory leak
- Fixed heap corruption issue when using separate RPC task
- More example multi-threading methods in RPC Queues (also good examples of various Nim methods)
- Nim Channels verified to work
- Refactored test framework, can now run tests for certain test types