Update lora.cpp

This commit is contained in:
Daniël Koek 2024-03-26 18:02:27 +00:00
parent 0c3270d352
commit 9ef7291b87

View file

@ -161,8 +161,8 @@ void Lora::loop() {
ESP_LOGD(TAG, "PIN: %u ", data[1]); ESP_LOGD(TAG, "PIN: %u ", data[1]);
ESP_LOGD(TAG, "VALUE: %u ", data[2]); ESP_LOGD(TAG, "VALUE: %u ", data[2]);
ESP_LOGD(TAG, "RSSI: %u ", data[3]); ESP_LOGD(TAG, "RSSI: %u ", data[3]);
rssi_ = (char) data[3]; this->rssi_sensor_->publish_state(data[3]);
this->update_needed_ = true; this->message_text_sensor_->publish_state("Got something");
} else { } else {
ESP_LOGD(TAG, "WEIRD"); ESP_LOGD(TAG, "WEIRD");
} }