Mesh Architecture Using LoRa

I have a project where I want to create an architecture with one gateway and multiple end nodes. All end nodes directly send their packets to the gateway when they are nearby. If they are not near the gateway, they will use a hop architecture, where packets hop from one node to another until they reach the gateway. The hopping will be based on the RSSI value of the end node.

Does anyone know how I can implement this? I’ve been working on this project for over a month now. I’m using the ESP32 Heltec LoRa v3 as my development board. Is this feasible with my current setup?

Have you looked at something like Meshtastic that has these concepts of end devices, relays and gateways?

The product is good - lots of memory and a display for instant feedback. How many LoRa v3’s do you have - you’d need to have at least three - one for gateway, one nearby that talks directly and one out of range of the gateway so it has to talk via the nearby one.

Getting LoRa devices to not hear each other is pretty hard - it’s not called Long Range for nothing!