|
| NukiOpener (const std::string &deviceName, const uint32_t deviceId) |
|
Nuki::CmdResult | addTimeControlEntry (NewTimeControlEntry newTimecontrolEntry) |
| Sends a new time(d) control entry via BLE to the opener. This entry is independant of keypad or authorization entries, it will execute the defined action at the defined time in the newTimeControlEntry.
|
|
Nuki::CmdResult | disableRtoAfterRing (const bool disable) |
| Gets the current config from the opener, updates the disable rto after ring parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | enableAutoBatteryTypeDetection (const bool enable) |
| Gets the current advanced config from the opener, updates the enable battery type detection parameter and sends the new advanced config to the opener via BLE.
|
|
Nuki::CmdResult | enableButton (const bool enable) |
| Gets the current config from the opener, updates the enable button parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | enableDst (const bool enable) |
| Gets the current config from the opener, updates the dst parameter and sends the new config to the opener via BLE.
|
|
CmdResult | enableLedFlash (const bool enable) |
| Gets the current config from the opener, updates the whether or not the flashing LED should be enabled to signal an unlocked door. And sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | enablePairing (const bool enable) |
| Sets the opener ability to pair with other devices (can be used to prevent unauthorized pairing) Gets the current config from the opener, updates the pairing parameter and sends the new config to the opener via BLE (CAUTION: if pairing is set to false and credentials are deleted a factory reset of the opener needs to be performed before pairing is possible again)
|
|
Nuki::CmdResult | enableRandomElectricStrikeDelay (const bool enable) |
| Gets the current config from the opener, updates the random electric strike delay parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | enableSoundConfirmation (const bool enable) |
| Gets the current config from the opener, updates the enable sound confirmation parameter and sends the new config to the opener via BLE.
|
|
const ErrorCode | getLastError () const |
| Get the Last Error code received from the opener.
|
|
void | getLogEntries (std::list< LogEntry > *requestedLogEntries) |
| Get the Log Entries stored on the esp. Only available after executing retreiveLogEntries.
|
|
void | getTimeControlEntries (std::list< TimeControlEntry > *timeControlEntries) |
| Get the time control entries stored on the esp (after executing retrieveTimeControlEntries())
|
|
bool | isBatteryCritical () |
| Returns battery critical state parsed from the battery state byte (battery critical byte)
|
|
bool | isKeypadBatteryCritical () |
| Returns keypad battery critical state in case this is supported.
|
|
Nuki::CmdResult | lockAction (const LockAction lockAction, const uint32_t nukiAppId=1, const uint8_t flags=0, const char *nameSuffix=nullptr, const uint8_t nameSuffixLen=0) |
| Sends lock action cmd via BLE to the opener.
|
|
virtual void | logErrorCode (uint8_t errorCode) override |
|
Nuki::CmdResult | removeTimeControlEntry (uint8_t entryId) |
| Deletes a time(d) control entry via BLE to the opener. (see addTimeControlEntry())
|
|
Nuki::CmdResult | requestAdvancedConfig (AdvancedConfig *retrievedAdvancedConfig) |
| Requests advanced config from Opener via BLE.
|
|
Nuki::CmdResult | requestBatteryReport (BatteryReport *retrievedBatteryReport) |
| Requests battery status from Opener via BLE.
|
|
Nuki::CmdResult | requestConfig (Config *retrievedConfig) |
| Requests config from Opener via BLE.
|
|
Nuki::CmdResult | requestOpenerState (OpenerState *state) |
| Requests keyturner state from Opener via BLE.
|
|
Nuki::CmdResult | retrieveLogEntries (const uint32_t startIndex, const uint16_t count, const uint8_t sortOrder, const bool totalCount) |
| Request the opener via BLE to send the log entries.
|
|
void | retrieveOpenerState (OpenerState *openerState) |
| Gets the last keyturner state stored on the esp.
|
|
Nuki::CmdResult | retrieveTimeControlEntries () |
| Request the opener via BLE to send the existing time control entries.
|
|
Nuki::CmdResult | setAdvertisingMode (const AdvertisingMode mode) |
| Gets the current config from the opener, updates the advertising frequency parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setBatteryType (const BatteryType type) |
| Gets the current advanced config from the opener, updates the battery type parameter and sends the new advanced config to the opener via BLE.
|
|
Nuki::CmdResult | setBusModeSwitch (const bool busModeSwitch) |
| Gets the current config from the opener, updates the bus mode switch parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setDoorbellSuppression (const uint8_t suppression) |
| Gets the current config from the opener, updates the doorbell suppression parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setDoorbellSuppressionDuration (const uint16_t duration) |
| Gets the current config from the opener, updates the doorbell suppression duration parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setDoubleButtonPressAction (const ButtonPressAction action) |
| Gets the current advanced config from the opener, updates the double button press action parameter and sends the new advanced config to the opener via BLE.
|
|
Nuki::CmdResult | setElectricStrikeDelay (const uint16_t delay) |
| Gets the current config from the opener, updates the electric strike delay parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setElectricStrikeDuration (const uint16_t duration) |
| Gets the current config from the opener, updates the electric strike duration parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setFobAction (const uint8_t fobActionNr, const uint8_t fobAction) |
| Gets the current config from the opener, updates the given fob action parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setIntercomID (const uint16_t intercomID) |
| Gets the current config from the opener, updates the intercom id parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setLatitude (const float degrees) |
| Gets the current config from the opener, updates the latitude parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setLongitude (const float degrees) |
| Gets the current config from the opener, updates the longitude parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setName (const std::string &name) |
| Gets the current config from the opener, updates the name parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setOperatingMode (const uint8_t opmode) |
| Gets the current config from the opener, updates the operating mode parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setRtoTimeout (const uint8_t timeout) |
| Gets the current config from the opener, updates the rto timeout parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setShortCircuitDuration (const uint16_t duration) |
| Gets the current config from the opener, updates the short circuit duration parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setSingleButtonPressAction (const ButtonPressAction action) |
| Gets the current advanced config from the opener, updates the single button press action parameter and sends the new advanced config to the opener via BLE.
|
|
Nuki::CmdResult | setSoundCm (const uint8_t sound) |
| Gets the current config from the opener, updates the sound continuous mode parameter and sends the new config to the opener via BLE.
|
|
CmdResult | setSoundLevel (const uint8_t value) |
| Gets the current config from the opener, and updates the sound level.
|
|
Nuki::CmdResult | setSoundOpen (const uint8_t sound) |
| Gets the current config from the opener, updates the sound open parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setSoundRing (const uint8_t sound) |
| Gets the current config from the opener, updates the sound ring parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setSoundRto (const uint8_t sound) |
| Gets the current config from the opener, updates the sound RTO parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setTimeZoneId (const TimeZoneId timeZoneId) |
| Gets the current config from the opener, updates the timezone id parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | setTimeZoneOffset (const int16_t minutes) |
| Gets the current config from the opener, updates the timezone offset parameter and sends the new config to the opener via BLE.
|
|
Nuki::CmdResult | updateTimeControlEntry (TimeControlEntry TimeControlEntry) |
| Sends an updated time(d) control entry via BLE to the opener. (see addTimeControlEntry())
|
|
| NukiBle (const std::string &deviceName, const uint32_t deviceId, const NimBLEUUID pairingServiceUUID, const NimBLEUUID pairingServiceUltraUUID, const NimBLEUUID deviceServiceUUID, const NimBLEUUID gdioUUID, const NimBLEUUID gdioUltraUUID, const NimBLEUUID userDataUUID, const std::string preferencedId) |
|
virtual | ~NukiBle () |
|
Nuki::CmdResult | addAuthorizationEntry (NewAuthorizationEntry newAuthorizationEntry) |
| Sends a new authorization entry to the lock via BLE.
|
|
Nuki::CmdResult | addKeypadEntry (NewKeypadEntry newKeypadEntry) |
| Send a new keypad entry to the lock via BLE.
|
|
Nuki::CmdResult | deleteAuthorizationEntry (const uint32_t id) |
| Deletes the authorization entry from the lock.
|
|
CmdResult | deleteKeypadEntry (uint16_t id) |
| Delete a Keypad Entry.
|
|
Nuki::CmdResult | genericCommand (Command command, bool withPin=true) |
| Sends a custom command to the lock via BLE.
|
|
void | getAuthorizationEntries (std::list< AuthorizationEntry > *requestedAuthorizationEntries) |
| Get the Authorization Entries stored on the esp (after executing retreiveAuthorizationEntries)
|
|
const BLEAddress | getBleAddress () const |
| Returns the BLE address of the device if paired.
|
|
void | getFingerprintEntries (std::list< FingerprintEntry > *requestedFingerprintEntries) |
| Get the Fingerprint Entries stored on the esp (after executing retrieveFingerprintEntries)
|
|
void | getKeypadEntries (std::list< KeypadEntry > *requestedKeyPadEntries) |
| Get the Keypad Entries stored on the esp (after executing retreieveLogKeypadEntries)
|
|
uint16_t | getKeypadEntryCount () |
| Returns the keypad entry count. Only available after executing retreiveKeypadEntries.
|
|
unsigned long | getLastHeartbeat () |
| Returns the timestamp (millis) of the last received BLE beacon from the lock.
|
|
unsigned long | getLastReceivedBeaconTs () const |
| Returns the timestamp in milliseconds when the last ble beacon has been received from the device.
|
|
uint16_t | getLogEntryCount () |
| Returns the log entry count. Only available after executing retreiveLogEntries.
|
|
void | getMacAddress (char *macAddress) |
| Gets the ble mac address of the paired lock stored on the esp.
|
|
int | getRssi () const |
| Returns the RSSI of the last received ble beacon broadcast.
|
|
uint16_t | getSecurityPincode () |
| Gets the pincode stored on the esp. This pincode is used for sending/setting config via BLE to the lock by other methods and needs to be the same pincode as stored in the lock.
|
|
uint32_t | getUltraPincode () |
|
void | initialize (bool initAltConnect=false) |
| Initializes stored preferences based on the devicename passed in the constructor, creates the BLE client, sets the BLE callback and checks if the lock is paired (if credentials are stored in preferences)
|
|
const bool | isLockUltra () const |
| Returns if BLE is pairing/paired/connected with a Smart Lock Ultra.
|
|
const bool | isPairedWithLock () const |
| Returns pairing state (if credentials are stored or not)
|
|
Nuki::PairingResult | pairNuki (AuthorizationIdType idType=AuthorizationIdType::Bridge) |
| Checks if credentials are stored in preferences, if not initiate pairing.
|
|
void | registerBleScanner (BleScanner::Publisher *bleScanner) |
| Registers the BLE scanner to be used for scanning for advertisements from the lock. BleScanner::Publisher is defined in dependent library https://github.com/I-Connect/BleScanner.git.
|
|
void | registerLogger (Print *Log) |
| Registers a Logger to be used for printing debug logs.
|
|
Nuki::CmdResult | requestCalibration () |
| Sends an calibration (mechanical) request to the lock via BLE.
|
|
Nuki::CmdResult | requestDailyStatistics () |
| Sends a request for daily statistics to the lock via BLE.
|
|
Nuki::CmdResult | requestReboot () |
| Sends an reboot request to the lock via BLE.
|
|
void | resetHost () |
| Reset BLE host.
|
|
Nuki::CmdResult | retrieveAuthorizationEntries (const uint16_t offset, const uint16_t count) |
| Request the lock via BLE to send the existing authorizationentries.
|
|
Nuki::CmdResult | retrieveFingerprintEntries () |
| Request the lock via BLE to send the existing fingerprint entries.
|
|
Nuki::CmdResult | retrieveKeypadEntries (const uint16_t offset, const uint16_t count) |
| Request the lock via BLE to send the existing keypad entries.
|
|
bool | saveSecurityPincode (const uint16_t pinCode) |
| Saves the pincode on the esp. This pincode is used for sending/setting config via BLE to the lock by other methods and needs to be the same pincode as stored in the lock.
|
|
bool | saveUltraPincode (const uint32_t pinCode, bool save=true) |
|
void | setConnectRetries (uint8_t retries) |
| Set the BLE Connect number of retries.
|
|
void | setConnectTimeout (uint8_t timeout) |
| Set the BLE Connect Timeout in seconds.
|
|
void | setDebugCommand (bool enable) |
| Whether to enable or disable command debug logging.
|
|
void | setDebugCommunication (bool enable) |
| Whether to enable or disable communication debug logging.
|
|
void | setDebugConnect (bool enable) |
| Whether to enable or disable connect debug logging.
|
|
void | setDebugHexData (bool enable) |
| Whether to enable or disable hex data debug logging.
|
|
void | setDebugReadableData (bool enable) |
| Whether to enable or disable readable data debug logging.
|
|
void | setDisconnectTimeout (uint32_t timeoutMs) |
| Set the BLE Disconnect Timeout, if longer than ~20 sec the lock will disconnect by itself if there is no BLE communication.
|
|
void | setEventHandler (Nuki::SmartlockEventHandler *handler) |
| Set the Event Handler object.
|
|
void | setPower (esp_power_level_t powerLevel) |
| the transmission power.
|
|
Nuki::CmdResult | setSecurityPin (const uint16_t newSecurityPin) |
| Send the new pincode command to the lock via BLE (this command uses the earlier by saveSecurityPincode() stored pincode which needs to be the same as the pincode stored in the lock)
|
|
Nuki::CmdResult | setUltraPin (const uint32_t newSecurityPin) |
|
void | unPairNuki () |
| Delete stored credentials.
|
|
Nuki::CmdResult | updateAuthorizationEntry (UpdatedAuthorizationEntry updatedAuthorizationEntry) |
| Sends an updated authorization entry to the lock via BLE.
|
|
void | updateConnectionState () |
| checks the time past after last connect/communication sent, if the time past > timeout it will disconnect the BLE connection with the lock so that lock will start sending advertisements.
|
|
Nuki::CmdResult | updateKeypadEntry (UpdatedKeypadEntry updatedKeyPadEntry) |
| Send an updated keypad entry to the lock via BLE.
|
|
Nuki::CmdResult | updateTime (TimeValue time) |
| Sends the time to be set to the lock via BLE.
|
|
Nuki::CmdResult | verifySecurityPin () |
| Send the verify pincode command via BLE to the lock. This command uses the earlier by saveSecurityPincode() stored pincode.
|
|