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

esp-rfid v2 #605

Open
wants to merge 294 commits into
base: stable
Choose a base branch
from
Open

esp-rfid v2 #605

wants to merge 294 commits into from

Conversation

matjack1
Copy link
Collaborator

I think it's time to release a V2 for esp-rfid :)

We need a V2 as there are a few breaking changes on the MQTT interface, but I think it's much better now.

Apart from that, the update from V1 should just work, the old configuration will work on the V2 and the new stuff should default to settings that should keep the old configuration working. If anyone has problems upgrading let me know!

I have updated all the documentation and apart from a merge with stable and a changelog update we should be ready!!

@omersiar let me know what you think :)

@matjack1
Copy link
Collaborator Author

I've also create a release to help trying it out, here: https://github.com/esprfid/esp-rfid/releases/tag/2.0.0.rc0

@omersiar
Copy link
Collaborator

This is huge 🥳 and puts a great milestone to the project thanks to all efforts you put into this, much appreciated.

@matjack1
Copy link
Collaborator Author

Thank you @omersiar!

Meanwhile I've deployed it on our system at the local Fablab and found a little bug about the old config compatibility :)

If you can approve again would be nice :)

I'll leave the PR open for a couple weeks just in case I find anything else or if anyone testing finds any issue. Thank you Omer!!

Copy link
Collaborator

@omersiar omersiar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

plex3r and others added 23 commits December 19, 2023 19:14
Better version built on existing idea
deserializeJson needs size if it's not a zero-terminated string
(accountTypes[0] == ACCESS_GRANTED) will always be true
if we got this far
Commits abd0e66 and 20e4dcb fixed how UIDs are converted to strings.
Previously some '0's in the UID would be missed, meaning the old stored UIDs
were actually incorrect. This had the effect of meaning esp-rfid v2 is not
compatible with all users from v1. To fix this we create UIDs at scan time in
both the new (fixed) format and the old (broken) format, and check the database
for both.
don't process JSON past the end of the buffer
Fix activation logic for extra relays
Use correct label for extra relays when editing user
Ensure users are compatible between v1 and v2
helps us mere mortals can understand what's happening :)

also quote username in debug output for clarity
Couple of small updates to rfid.esp and add more comments
Fix for NTP blocking loop if connection is blocked
- NTP works also on wifi reconnect
- event logs are highlighted correctly
- cleaned debug logging
Doesn't keep the door open for 10 seconds!
Fix opening door while disconnected
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.

None yet