I am looking to establish communication between ESP32(with LoRa capabilities) and RPi which acts as broker. Can I send data from ESP32 to NodeRed (RPi) using LoRa and using MQTT protocol? If so, please guide how can I do this?
Yes, you can do that.
But, why do you want to use two communication protocols? MQTT and LoRa at the same time?
Can you better explain what you’re trying to do?
I am sorry for not explaining in a proper manner. I am bit of amateur in this.
My scenario: 1. Sensors like temp, humidity linked with ESP32 (Will be placed in remote location, so using LoRa, I have integrated RFM95 module with ESP32)
2. I need to send these data to remotely sitting RPi with LoRa Module SX1276 and then I will move it to cloud for further analysis.
I hope this is kind of clear.
At the moment, we don’t have any tutorials about LoRa with the Raspberry Pi.
We have some tutorials for the ESP32, but at the moment, we don’t have the Raspberry Pi receiving data via LoRa.
ADafruit has some resources about this subject with the Raspberry Pi: https://learn.adafruit.com/lora-and-lorawan-radio-for-raspberry-pi/overview