update ble lib
This commit is contained in:
@@ -97,7 +97,7 @@ void NetworkOpener::onMqttDataReceived(char *&topic, byte *&payload, unsigned in
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkOpener::publishKeyTurnerState(const NukiOpener::KeyTurnerState& keyTurnerState, const NukiOpener::KeyTurnerState& lastKeyTurnerState)
|
void NetworkOpener::publishKeyTurnerState(const NukiOpener::OpenerState& keyTurnerState, const NukiOpener::OpenerState& lastKeyTurnerState)
|
||||||
{
|
{
|
||||||
char str[50];
|
char str[50];
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public:
|
|||||||
void initialize();
|
void initialize();
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
void publishKeyTurnerState(const NukiOpener::KeyTurnerState& keyTurnerState, const NukiOpener::KeyTurnerState& lastKeyTurnerState);
|
void publishKeyTurnerState(const NukiOpener::OpenerState& keyTurnerState, const NukiOpener::OpenerState& lastKeyTurnerState);
|
||||||
void publishAuthorizationInfo(const uint32_t authId, const char* authName);
|
void publishAuthorizationInfo(const uint32_t authId, const char* authName);
|
||||||
void publishCommandResult(const char* resultStr);
|
void publishCommandResult(const char* resultStr);
|
||||||
void publishBatteryReport(const NukiOpener::BatteryReport& batteryReport);
|
void publishBatteryReport(const NukiOpener::BatteryReport& batteryReport);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ void NukiOpenerWrapper::update()
|
|||||||
_clearAuthData = false;
|
_clearAuthData = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&_lastKeyTurnerState, &_keyTurnerState, sizeof(NukiOpener::KeyTurnerState));
|
memcpy(&_lastKeyTurnerState, &_keyTurnerState, sizeof(NukiOpener::OpenerState));
|
||||||
}
|
}
|
||||||
|
|
||||||
void NukiOpenerWrapper::setPin(const uint16_t pin)
|
void NukiOpenerWrapper::setPin(const uint16_t pin)
|
||||||
@@ -258,7 +258,7 @@ void NukiOpenerWrapper::onConfigUpdateReceived(const char *topic, const char *va
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const NukiOpener::KeyTurnerState &NukiOpenerWrapper::keyTurnerState()
|
const NukiOpener::OpenerState &NukiOpenerWrapper::keyTurnerState()
|
||||||
{
|
{
|
||||||
return _keyTurnerState;
|
return _keyTurnerState;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public:
|
|||||||
|
|
||||||
void unpair();
|
void unpair();
|
||||||
|
|
||||||
const NukiOpener::KeyTurnerState& keyTurnerState();
|
const NukiOpener::OpenerState& keyTurnerState();
|
||||||
const bool isPaired();
|
const bool isPaired();
|
||||||
|
|
||||||
BleScanner::Scanner* bleScanner();
|
BleScanner::Scanner* bleScanner();
|
||||||
@@ -52,8 +52,8 @@ private:
|
|||||||
bool _publishAuthData = false;
|
bool _publishAuthData = false;
|
||||||
bool _clearAuthData = false;
|
bool _clearAuthData = false;
|
||||||
|
|
||||||
NukiOpener::KeyTurnerState _lastKeyTurnerState;
|
NukiOpener::OpenerState _lastKeyTurnerState;
|
||||||
NukiOpener::KeyTurnerState _keyTurnerState;
|
NukiOpener::OpenerState _keyTurnerState;
|
||||||
|
|
||||||
uint32_t _lastAuthId = 0xffff;
|
uint32_t _lastAuthId = 0xffff;
|
||||||
|
|
||||||
|
|||||||
Submodule lib/nuki_ble updated: cab8d778c9...82472362d8
Reference in New Issue
Block a user