publish door sensor state via mqtt

This commit is contained in:
technyon
2022-03-31 17:56:30 +02:00
parent f3de3c75df
commit 1efd8157e2
5 changed files with 53 additions and 10 deletions

View File

@@ -144,6 +144,11 @@ void Network::publishKeyTurnerState(const char* state, const char* trigger, cons
_mqttClient.publish(mqtt_topic_lockstate_completionStatus, completionStatus);
}
void Network::publishDoorSensorState(const char *state)
{
_mqttClient.publish(mqtt_topic_door_sensor_state_action, state);
}
void Network::setLockActionReceived(void (*lockActionReceivedCallback)(const char *))
{
_lockActionReceivedCallback = lockActionReceivedCallback;