LoRa Mesh

These API's are currently only available in the latest RC builds.

Pymesh - LoRa Mesh

The Pymesh LoRa Mesh is implemented using OpenThread.

To understand the OpenThread terms and overall functionality, these guides are highly recommended:

Important, all the OpenThread CLI commands are accessible using LoRa.cli("command"), the complete list of commands is here. Please note some commands, can't execute, as some functionalities are not implemented (ex: Commissioning Role, Joiner Role, DNS).

This example shows how to:

  • enable LoRa-Mesh network

  • find neighbors (parent, children, other router direct connections)

  • send PING to neighbors

  • open UDP socket for:

    • listening incoming UDP packets and answering back (ACK)

    • sending packets to all neighbors

  • toggle LED as packet/ping is received.

The LoRa-Mesh socket supports only the following socket methods: close(), bind(), sendto(), and recvfrom().

Lora Mesh example

Last updated