remove unused code
This commit is contained in:
@@ -83,11 +83,6 @@ void NetworkLock::onMqttDataReceived(char *&topic, byte *&payload, unsigned int
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_mqttTopicReceivedForwardCallback != nullptr)
|
|
||||||
{
|
|
||||||
_mqttTopicReceivedForwardCallback(topic, payload, length);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkLock::publishKeyTurnerState(const NukiLock::KeyTurnerState& keyTurnerState, const NukiLock::KeyTurnerState& lastKeyTurnerState)
|
void NetworkLock::publishKeyTurnerState(const NukiLock::KeyTurnerState& keyTurnerState, const NukiLock::KeyTurnerState& lastKeyTurnerState)
|
||||||
@@ -179,11 +174,6 @@ void NetworkLock::setConfigUpdateReceivedCallback(void (*configUpdateReceivedCal
|
|||||||
_configUpdateReceivedCallback = configUpdateReceivedCallback;
|
_configUpdateReceivedCallback = configUpdateReceivedCallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkLock::setMqttDataReceivedForwardCallback(void (*callback)(char *, uint8_t *, unsigned int))
|
|
||||||
{
|
|
||||||
_mqttTopicReceivedForwardCallback = callback;
|
|
||||||
}
|
|
||||||
|
|
||||||
void NetworkLock::buildMqttPath(const char* path, char* outPath)
|
void NetworkLock::buildMqttPath(const char* path, char* outPath)
|
||||||
{
|
{
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
@@ -206,12 +196,6 @@ void NetworkLock::buildMqttPath(const char* path, char* outPath)
|
|||||||
outPath[i+1] = 0x00;
|
outPath[i+1] = 0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void NetworkLock::restartAndConfigureWifi()
|
|
||||||
{
|
|
||||||
_network->reconfigureDevice();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool NetworkLock::comparePrefixedPath(const char *fullPath, const char *subPath)
|
bool NetworkLock::comparePrefixedPath(const char *fullPath, const char *subPath)
|
||||||
{
|
{
|
||||||
char prefixedPath[500];
|
char prefixedPath[500];
|
||||||
|
|||||||
@@ -30,13 +30,9 @@ public:
|
|||||||
|
|
||||||
void setLockActionReceivedCallback(bool (*lockActionReceivedCallback)(const char* value));
|
void setLockActionReceivedCallback(bool (*lockActionReceivedCallback)(const char* value));
|
||||||
void setConfigUpdateReceivedCallback(void (*configUpdateReceivedCallback)(const char* path, const char* value));
|
void setConfigUpdateReceivedCallback(void (*configUpdateReceivedCallback)(const char* path, const char* value));
|
||||||
void setMqttDataReceivedForwardCallback(void (*callback)(char*, uint8_t*, unsigned int));
|
|
||||||
|
|
||||||
void restartAndConfigureWifi();
|
|
||||||
|
|
||||||
void onMqttDataReceived(char*& topic, byte*& payload, unsigned int& length) override;
|
void onMqttDataReceived(char*& topic, byte*& payload, unsigned int& length) override;
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void publishFloat(const char* topic, const float value, const uint8_t precision = 2);
|
void publishFloat(const char* topic, const float value, const uint8_t precision = 2);
|
||||||
void publishInt(const char* topic, const int value);
|
void publishInt(const char* topic, const int value);
|
||||||
@@ -57,5 +53,4 @@ private:
|
|||||||
|
|
||||||
bool (*_lockActionReceivedCallback)(const char* value) = nullptr;
|
bool (*_lockActionReceivedCallback)(const char* value) = nullptr;
|
||||||
void (*_configUpdateReceivedCallback)(const char* path, const char* value) = nullptr;
|
void (*_configUpdateReceivedCallback)(const char* path, const char* value) = nullptr;
|
||||||
void (*_mqttTopicReceivedForwardCallback)(char*, uint8_t*, unsigned int) = nullptr;
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user