Page 1 of 1

Difference between Esp32 LoRa.write() and LoRa.print() commands

Posted: Wed Sep 23, 2020 11:54 pm
by flavioavilela
Hi everyone.
What is difference between LoRa.write() and LoRa.print()?
I noticed this two commands send data package to LoRa network, but if I send message by LoRa.write(), the receiver side receive a strange characters.

Re: Difference between Esp32 LoRa.write() and LoRa.print() commands

Posted: Thu Nov 02, 2023 7:01 pm
by wantanhoe
Hello. Im having the same problem with not knowing which one to use. Have you found the answer to use for this?

Re: Difference between Esp32 LoRa.write() and LoRa.print() commands

Posted: Fri Mar 29, 2024 5:20 am
by koushik
LoRa.write(byte) sends a single byte as given in docs - https://github.com/sandeepmistry/arduin ... md#writing
LoRa.read() reads single byte from packet - https://github.com/sandeepmistry/arduin ... md#reading
On the receiver side -> byte data = LoRa.read();
then you can change the byte to a HEX string using String(data, HEX);