Skip to content

Added function soft Reset + extended begin function with new parameters (as clone of begin function) #132

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gauner666
Copy link

Hello, the following commit does these 2 things:

  1. Added support for softReset, where the sensor will simply soft-reset itself (like described in the manual. Tested on R503, working). I did this because my R503 sensor (one of three) is stopping to work after a couple of months. A power cycle solved the issue. The new function resets the sensor as it would be with a power cycle.
  2. Added new function begin which is a clone of your begin function but extends it with 2 parameters: rx, tx. These 2 integers are the ports, the sensor is attached to.

There is no breaking change.
There is no limitation in this change.

Actually working in production, tests were made.

@gauner666
Copy link
Author

PS: Seems that there are issues on function call begin with tx,rx for software serial.
Did the test on ESP32 ATOM M5 (various versions, also S3) which are HardwareSerial

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant