# How does LoRa work in ESP32

#### zazas321

Joined Nov 29, 2015
856
Hey. I want to try to make low power device based on ESP32 to send readings to the server.
I have come across this tutorial that describes how to get lora working on ESP32:
https://randomnerdtutorials.com/esp32-lora-sensor-web-server/

Lora reicever function:
Code:
void getLoRaData() {
while (LoRa.available()) {
// String example: 1/27.43&654#95.34

// Get readingID, temperature and soil moisture
}
}
What are the indexes '/' , '&' . and '#'.

Also, I am mainly concerned how does it understand which transceiver is sending the data? What if I have multiple LORA transceivers and want to just receive from one of them? How do I ignore the rest? What if I am sending/receiving some sensitive data and my neighbour has LORA receiver on the same frequency band? Is he also gonna receive the message?

For example. in MODBUS RTU we have slave ID, thats how we determine to which and from which device to read/send data. I am not certain how do we determine that in LoRa

#### zazas321

Joined Nov 29, 2015
856
Sounds like you have a lot of learning and reading to do!

I recommend:
https://randomnerdtutorials.com/esp32-lora-rfm95-transceiver-arduino-ide/

and read the datasheet for the ESP32 LoRa and chip.

Same as we all do to learn these things.
Thanks for pointing me to this website. The key bit that I was hoping to find: LoRa.setSyncWord(0xF3);

Anyways, I should look more at LoRaWAN. But I dont know if that is a simple thing to implement on ESP32 or simmilar modules.