Skip to content

Commit

Permalink
Fix Method name
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Apr 2, 2024
1 parent 93b309c commit 0342861
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/nuki_lock/nuki_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ namespace esphome
this->nukiLock_.setConnectTimeout(BLE_CONNECT_TIMEOUT_SEC);
this->nukiLock_.setConnectRetries(BLE_CONNECT_TIMEOUT_RETRIES);

uint8_t result = this->nukiLock_.setSecurityPin(1234);
if (result == 1) {
bool result = this->nukiLock_.saveSecurityPincode(1234);
if (result) {
ESP_LOGI(TAG, "Set pincode done");

} else {
ESP_LOGE(TAG, "Set pincode failed: %d", result);
ESP_LOGE(TAG, "Set pincode failed!");
}

if (this->nukiLock_.isPairedWithLock())
Expand Down
2 changes: 2 additions & 0 deletions components/nuki_lock/nuki_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "NukiConstants.h"
#include "BleScanner.h"

#define DEBUG_NUKI_CONNECT

namespace esphome {
namespace nuki_lock {

Expand Down

0 comments on commit 0342861

Please sign in to comment.