add /info endpoint to publish preference content

This commit is contained in:
technyon
2023-02-05 12:11:10 +01:00
parent 327038119e
commit 2094595e78
7 changed files with 149 additions and 1 deletions

View File

@@ -251,6 +251,11 @@ void NukiWrapper::unlatch()
_nextLockAction = NukiLock::LockAction::Unlatch;
}
bool NukiWrapper::isPinSet()
{
return _nukiLock.getSecurityPincode() != 0;
}
void NukiWrapper::setPin(const uint16_t pin)
{
_nukiLock.saveSecurityPincode(pin);