Skip to content

Multiple parsers on one ESP? #34

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

Open
kvoit opened this issue Jan 27, 2024 · 1 comment
Open

Multiple parsers on one ESP? #34

kvoit opened this issue Jan 27, 2024 · 1 comment

Comments

@kvoit
Copy link

kvoit commented Jan 27, 2024

Hi, great work, I have this successfully running on an ESP32-C3 for a while now, thanks a lot!
For a new project, I would like to read two meters, and with one SoftSerial and Serial2, this does not seem to be an issue for a single ESP32.
Do I see correctly that this is not possible with library due to the static state variables?

@olliiiver
Copy link
Owner

Hi @kvoit. You are right. That would mean we must improve memory management.

Roland-Schneider added a commit to Roland-Schneider/sml_parser that referenced this issue Apr 22, 2025
…lParser which provides parser state and cache buffers per instance, opposed to previous static buffers. This allows concurrent handling of multiple smart meter devices with the same program. Issue olliiiver#32: Provide new function smlOBISServerId to obtain OBIS server id 1-0:0.0.9*255
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

No branches or pull requests

2 participants