isPinSet
This commit is contained in:
@@ -469,7 +469,7 @@ void NukiOpenerWrapper::updateConfig()
|
|||||||
|
|
||||||
void NukiOpenerWrapper::updateAuthData()
|
void NukiOpenerWrapper::updateAuthData()
|
||||||
{
|
{
|
||||||
if(_nukiOpener.getSecurityPincode() == 0) return;
|
if(!isPinSet()) return;
|
||||||
|
|
||||||
Nuki::CmdResult result = _nukiOpener.retrieveLogEntries(0, 0, 0, true);
|
Nuki::CmdResult result = _nukiOpener.retrieveLogEntries(0, 0, 0, true);
|
||||||
if(result != Nuki::CmdResult::Success)
|
if(result != Nuki::CmdResult::Success)
|
||||||
@@ -779,7 +779,7 @@ void NukiOpenerWrapper::onConfigUpdateReceived(const char *value)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_nukiOpener.getSecurityPincode() == 0)
|
if(!isPinSet())
|
||||||
{
|
{
|
||||||
jsonResult["general"] = "noPinSet";
|
jsonResult["general"] = "noPinSet";
|
||||||
serializeJson(jsonResult, _resbuf, sizeof(_resbuf));
|
serializeJson(jsonResult, _resbuf, sizeof(_resbuf));
|
||||||
@@ -1411,7 +1411,7 @@ void NukiOpenerWrapper::onKeypadCommandReceived(const char *command, const uint
|
|||||||
|
|
||||||
void NukiOpenerWrapper::onKeypadJsonCommandReceived(const char *value)
|
void NukiOpenerWrapper::onKeypadJsonCommandReceived(const char *value)
|
||||||
{
|
{
|
||||||
if(_nukiOpener.getSecurityPincode() == 0)
|
if(!isPinSet())
|
||||||
{
|
{
|
||||||
_network->publishKeypadJsonCommandResult("noPinSet");
|
_network->publishKeypadJsonCommandResult("noPinSet");
|
||||||
return;
|
return;
|
||||||
@@ -1759,7 +1759,7 @@ void NukiOpenerWrapper::onTimeControlCommandReceived(const char *value)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_nukiOpener.getSecurityPincode() == 0)
|
if(!isPinSet())
|
||||||
{
|
{
|
||||||
_network->publishTimeControlCommandResult("noPinSet");
|
_network->publishTimeControlCommandResult("noPinSet");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -450,7 +450,7 @@ void NukiWrapper::updateConfig()
|
|||||||
|
|
||||||
void NukiWrapper::updateAuthData()
|
void NukiWrapper::updateAuthData()
|
||||||
{
|
{
|
||||||
if(_nukiLock.getSecurityPincode() == 0) return;
|
if(!isPinSet()) return;
|
||||||
|
|
||||||
Nuki::CmdResult result = _nukiLock.retrieveLogEntries(0, 0, 0, true);
|
Nuki::CmdResult result = _nukiLock.retrieveLogEntries(0, 0, 0, true);
|
||||||
if(result != Nuki::CmdResult::Success)
|
if(result != Nuki::CmdResult::Success)
|
||||||
@@ -715,7 +715,7 @@ void NukiWrapper::onConfigUpdateReceived(const char *value)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_nukiLock.getSecurityPincode() == 0)
|
if(!isPinSet())
|
||||||
{
|
{
|
||||||
jsonResult["general"] = "noPinSet";
|
jsonResult["general"] = "noPinSet";
|
||||||
serializeJson(jsonResult, _resbuf, sizeof(_resbuf));
|
serializeJson(jsonResult, _resbuf, sizeof(_resbuf));
|
||||||
@@ -1397,7 +1397,7 @@ void NukiWrapper::onKeypadCommandReceived(const char *command, const uint &id, c
|
|||||||
|
|
||||||
void NukiWrapper::onKeypadJsonCommandReceived(const char *value)
|
void NukiWrapper::onKeypadJsonCommandReceived(const char *value)
|
||||||
{
|
{
|
||||||
if(_nukiLock.getSecurityPincode() == 0)
|
if(!isPinSet())
|
||||||
{
|
{
|
||||||
_network->publishKeypadJsonCommandResult("noPinSet");
|
_network->publishKeypadJsonCommandResult("noPinSet");
|
||||||
return;
|
return;
|
||||||
@@ -1745,7 +1745,7 @@ void NukiWrapper::onTimeControlCommandReceived(const char *value)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_nukiLock.getSecurityPincode() == 0)
|
if(!isPinSet())
|
||||||
{
|
{
|
||||||
_network->publishTimeControlCommandResult("noPinSet");
|
_network->publishTimeControlCommandResult("noPinSet");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user