Update ebyte_lora.cpp

This commit is contained in:
Daniël Koek 2024-03-29 13:48:06 +00:00
parent ae8cb94bd2
commit 927d2d4702

View file

@ -221,6 +221,9 @@ void EbyteLoraComponent::loop() {
this->rssi_sensor_->publish_state((data[data.size() - 1] / 255.0) * 100);
ESP_LOGD(TAG, "RSSI: %u % ", (data[data.size() - 1] / 255.0) * 100);
}
if (data[0] == PROGRAM_CONF) {
ESP_LOGD(TAG, "GOT PROGRAM_CONF");
}
}
void EbyteLoraComponent::send_switch_info_() {
if (!EbyteLoraComponent::can_send_message_()) {