-
-
Notifications
You must be signed in to change notification settings - Fork 915
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
Fix for issue #997. #1576
Fix for issue #997. #1576
Conversation
Add support to clear UserCode by writing empty value or value consisting of NULLs only.
Tested against a Schlage BE469 Touchscreen Deadbolt as follows:
|
Please see my reply to #997 |
See comments on #997. Are we sure the proposed solution is not sufficient? |
I have tested this PR and seems to work well on my Schlage BE469. Slot shows (Available) after clearing. |
@Fishwaldo based on your comments...
I don't know that we are going to solve this problem from a standpoint of who knows about special codes or not. However I do think that anyone with knowledge of the 0000 or NULL can use this patch to their advantage. This would be the case more so than not. Local clearing of codes still work as well. So I don't think this would break anything either. If anything, it at least improves things for certain users. |
Exactly my point. If we just create a new ValueInt called "Clear User Code" then an application just has to present a user with an Input Box (or drop down list or whatever). When we get a Set on that ValueID, we clear the code internally in the class. Then the user doesn't have to care if its ascii 0000, decimal 0000, Null etc to clear the code. Devices with quirks, we can handle with a config option inside the class. Will applications need to be updated? Yes - But there are lots of updates in the Dev branch, so this is just another change applications will need to take care of over 1.4 |
I'm working on refactoring this already. So Closing this. Watch #997 |
Add support to clear UserCode by writing empty value or value consisting of NULLs only.