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

reset energy, set max power , read alarm flag. #102

Open
iw2fvo opened this issue Feb 7, 2023 · 5 comments
Open

reset energy, set max power , read alarm flag. #102

iw2fvo opened this issue Feb 7, 2023 · 5 comments

Comments

@iw2fvo
Copy link

iw2fvo commented Feb 7, 2023

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@iw2fvo
Copy link
Author

iw2fvo commented Feb 7, 2023

good day to all,
I am using PZEM 004T v3.0 connected to esp 8266 loaded using Arduino IDE and relevant example sketches.
I am not so skill in using "c" and IDE so I would like if someone could indicate to me the code line to be used for :

reset accumulated enrgy
set MAX power
read alarm flag
Thank a lot in advance for any answer.
Regards
iw2fo(at)yahoo.com

@sergiocntr
Copy link

Ciao.

reset accumulated enrgy -> pzem.resetEnergy();
set MAX power -> pzem.setPowerAlarm(watts);
read alarm flag -> bool alarm = pzem.getPowerAlarm();

Try and let me know if you need more help.

@iw2fvo
Copy link
Author

iw2fvo commented Feb 10, 2023 via email

@sergiocntr
Copy link

sergiocntr commented Feb 10, 2023

Hi Ambrogio
nice to hear that it worked.
For LoRa I have no code, I've never used that device. I've searched a bit and I can assure you that Renzo has everything you need https://github.com/xreef/LoRa_E32_Series_Library

If you think the problem here is solved, please close the issue.

@margohaux
Copy link

hi! i wanted to reset the energy but the code is error. may i know if you have a reference code to reset energy?

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

3 participants