New commands
This commit is contained in:
Submodule lib/nuki_ble updated: cf762e7dbd...bd91181b3e
@@ -5,7 +5,7 @@
|
|||||||
#define NUKI_HUB_VERSION "9.10"
|
#define NUKI_HUB_VERSION "9.10"
|
||||||
#define NUKI_HUB_VERSION_INT (uint32_t)910
|
#define NUKI_HUB_VERSION_INT (uint32_t)910
|
||||||
#define NUKI_HUB_BUILD "unknownbuildnr"
|
#define NUKI_HUB_BUILD "unknownbuildnr"
|
||||||
#define NUKI_HUB_DATE "2025-04-02"
|
#define NUKI_HUB_DATE "2025-04-04"
|
||||||
|
|
||||||
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
|
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
|
||||||
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"
|
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"
|
||||||
|
|||||||
@@ -360,6 +360,7 @@ void NukiWrapper::update(bool reboot)
|
|||||||
Log->println("Updating Lock config based on timer or query");
|
Log->println("Updating Lock config based on timer or query");
|
||||||
_nextConfigUpdateTs = ts + _intervalConfig * 1000;
|
_nextConfigUpdateTs = ts + _intervalConfig * 1000;
|
||||||
updateConfig();
|
updateConfig();
|
||||||
|
updateDebug();
|
||||||
}
|
}
|
||||||
if(_waitAuthLogUpdateTs != 0 && ts > _waitAuthLogUpdateTs)
|
if(_waitAuthLogUpdateTs != 0 && ts > _waitAuthLogUpdateTs)
|
||||||
{
|
{
|
||||||
@@ -728,6 +729,40 @@ void NukiWrapper::updateConfig()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NukiWrapper::updateDebug()
|
||||||
|
{
|
||||||
|
Nuki::CmdResult result = (Nuki::CmdResult)-1;
|
||||||
|
Log->println("Running debug command - RequestGeneralStatistics");
|
||||||
|
result = _nukiLock.genericCommand(Nuki::Command::RequestGeneralStatistics);
|
||||||
|
Log->print("Result: ");
|
||||||
|
Log->println(result);
|
||||||
|
Log->println("Debug command complete");
|
||||||
|
Log->println("Running debug command - RequestMqttConfig");
|
||||||
|
result = (Nuki::CmdResult)-1;
|
||||||
|
result = _nukiLock.genericCommand(Nuki::Command::RequestMqttConfig);
|
||||||
|
Log->print("Result: ");
|
||||||
|
Log->println(result);
|
||||||
|
Log->println("Debug command complete");
|
||||||
|
|
||||||
|
/*
|
||||||
|
RequestGeneralStatistics = 0x0063,
|
||||||
|
RequestMqttConfig = 0x008B,
|
||||||
|
|
||||||
|
RequestInternalLogEntries = 0x0065,
|
||||||
|
RequestAccessoryInfo = 0x0091,
|
||||||
|
RequestMatterPairings = 0x0112
|
||||||
|
CheckKeypadCode = 0x006E,
|
||||||
|
|
||||||
|
SmartLockScanWifi = 0x0080,
|
||||||
|
SmartLockConnectWifi = 0x0082,
|
||||||
|
SmartLockSetWifiConfig = 0x0087,
|
||||||
|
SetMqttConfig = 0x008D,
|
||||||
|
SetKeypad2Config = 0x009C,
|
||||||
|
EnableMatterCommissioning = 0x0110,
|
||||||
|
SetMatterState = 0x0111,
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
void NukiWrapper::updateAuthData(bool retrieved)
|
void NukiWrapper::updateAuthData(bool retrieved)
|
||||||
{
|
{
|
||||||
if(!isPinValid())
|
if(!isPinValid())
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ private:
|
|||||||
bool updateKeyTurnerState();
|
bool updateKeyTurnerState();
|
||||||
void updateBatteryState();
|
void updateBatteryState();
|
||||||
void updateConfig();
|
void updateConfig();
|
||||||
|
void updateDebug();
|
||||||
void updateAuthData(bool retrieved);
|
void updateAuthData(bool retrieved);
|
||||||
void updateKeypad(bool retrieved);
|
void updateKeypad(bool retrieved);
|
||||||
void updateTimeControl(bool retrieved);
|
void updateTimeControl(bool retrieved);
|
||||||
|
|||||||
Reference in New Issue
Block a user