This commit is contained in:
Daniël Koek 2024-03-28 12:06:00 +00:00
parent f8eb0c12a7
commit 7557e81448

View file

@ -171,10 +171,10 @@ void EbyteLoraComponent::loop() {
if (sensor->get_pin() == data[i]) { if (sensor->get_pin() == data[i]) {
sensor->publish_state(data[i + 1]); sensor->publish_state(data[i + 1]);
} }
ESP_LOGD(TAG, "PIN: %u ", data[i]);
ESP_LOGD(TAG, "VALUE: %u ", data[i + 1]);
i = +2;
} }
ESP_LOGD(TAG, "PIN TO SET: %u ", data[i]);
ESP_LOGD(TAG, "VALUE TO SET: %u ", data[i + 1]);
i = +2;
} }
ESP_LOGD(TAG, "RSSI: %u % ", (data[data.size() - 1] / 255.0) * 100); ESP_LOGD(TAG, "RSSI: %u % ", (data[data.size() - 1] / 255.0) * 100);
} }