Update lora.cpp

This commit is contained in:
Daniël Koek 2024-03-26 18:47:56 +00:00
parent 6ffdd099c9
commit e1c117c6a4

View file

@ -166,8 +166,11 @@ void Lora::loop() {
this->rssi_sensor_->publish_state(data[3]);
if (this->message_text_sensor_ != nullptr)
this->message_text_sensor_->publish_state("Got something");
if (this->pcf8574_ != nullptr)
if (this->pcf8574_ != nullptr) {
ESP_LOGD(TAG, " pcf8574_ PIN: %u ", data[1]);
ESP_LOGD(TAG, " pcf8574_ VALUE: %u ", data[2]);
this->pcf8574_->digital_write(data[1], data[2]);
}
} else {
ESP_LOGD(TAG, "WEIRD");
}