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.
Difference between Esp32 LoRa.write() and LoRa.print() commands
-
- Posts: 4
- Joined: Sun Jul 05, 2020 12:45 am
Re: Difference between Esp32 LoRa.write() and LoRa.print() commands
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
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);
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);
Who is online
Users browsing this forum: Zipdox and 154 guests