From bba562550e51c6d77c3a73ae424d399987238e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Sun, 24 Mar 2024 16:35:12 +0000 Subject: [PATCH] Trial this --- esphome/components/lora/lora.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/esphome/components/lora/lora.cpp b/esphome/components/lora/lora.cpp index f6285ffec1..204a1f4081 100644 --- a/esphome/components/lora/lora.cpp +++ b/esphome/components/lora/lora.cpp @@ -127,7 +127,7 @@ void Lora::dump_config() { void Lora::digital_write(uint8_t pin, bool value) { ESP_LOGD(TAG, "Starting to write message"); // std::string message = str_snprintf("%02x%02x", 9, pin, value); - sendMessage("bla"); + this->sendMessage("bla"); } bool Lora::sendMessage(std::string message) { uint8_t size = message.length(); @@ -138,9 +138,10 @@ bool Lora::sendMessage(std::string message) { return false; } ESP_LOGD(TAG, "Sending: %s", message); - this->write_array((uint8_t *) &messageFixed, size); - bool result = this->waitCompleteResponse(5000, 5000); - return result; + // this->write_array((uint8_t *) &messageFixed, size); + // bool result = this->waitCompleteResponse(5000, 5000); + // return result; + return true; } void Lora::loop() { if (!available()) {