Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add esp32c3 examples #37

Merged
merged 7 commits into from
Jun 21, 2024
Merged

add esp32c3 examples #37

merged 7 commits into from
Jun 21, 2024

Conversation

felixwrt
Copy link
Owner

@felixwrt felixwrt commented Jun 21, 2024

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.

@felixwrt felixwrt merged commit 7deb880 into main Jun 21, 2024
18 checks passed
@felixwrt felixwrt deleted the esp-examples branch June 21, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant