Restart BLE controller

This commit is contained in:
iranl
2025-06-15 21:13:45 +02:00
parent b60bbf032f
commit f8b68ff2fa
14 changed files with 384 additions and 114 deletions

View File

@@ -25,6 +25,7 @@ public:
void deactivateRTO();
void deactivateCM();
bool hasConnected();
bool isPinValid();
void setPin(const uint16_t pin);
uint16_t getPin();
@@ -36,6 +37,7 @@ public:
const bool isPaired() const;
const bool hasKeypad() const;
const BLEAddress getBleAddress() const;
uint8_t restartController();
std::string firmwareVersion() const;
std::string hardwareVersion() const;
@@ -135,9 +137,11 @@ private:
bool _forceKeypad = false;
bool _keypadEnabled = false;
bool _forceId = false;
bool _hasConnected = false;
uint _maxKeypadCodeCount = 0;
uint _maxTimeControlEntryCount = 0;
uint _maxAuthEntryCount = 0;
uint8_t _restartController = 0;
int _rssiPublishInterval = 0;
int64_t _statusUpdatedTs = 0;
int64_t _nextLockStateUpdateTs = 0;
@@ -158,7 +162,7 @@ private:
std::string _firmwareVersion = "";
std::string _hardwareVersion = "";
NukiOpener::LockAction _nextLockAction = (NukiOpener::LockAction)0xff;
char* _buffer;
const size_t _bufferSize;
};