This PR implements three embedded projects built for the ESP32-C3:
esp32c3-power-meter-mock: Mocking a power meter and sending sml messages continuously
esp32c3-sml-reader: Reading sml data from a UART pin using embedded_io traits
esp32c3-sml-reader-async: Reading sml data from a UART pin using embedded_io_async traits
The examples don't use SmlReader because that one doesn't support embedded_io(_async). Supporting the non-async traits wouldn't be difficult, but implementing async reader functions doesn't play nicely with the design of SmlReader. I'm working on a redesign that will allow using sml-rs nicely in all use-cases implemented in this PR.
This PR implements three embedded projects built for the ESP32-C3:
embedded_io
traitsembedded_io_async
traitsThe examples don't use
SmlReader
because that one doesn't supportembedded_io(_async)
. Supporting the non-async traits wouldn't be difficult, but implementing async reader functions doesn't play nicely with the design ofSmlReader
. I'm working on a redesign that will allow usingsml-rs
nicely in all use-cases implemented in this PR.