Internet of things (IoT) development has already become one of the main directions in the telecommunications and the information and communication system development as a whole. Promising solutions in the communication networks evolution, such as the latest LTE standards, concepts, and solutions for building 5G networks critical, include this component as an integral part of a promising communication network. There are various modern solutions for building IoT networks, and Long-Range Wide Area Network (LoRaWAN) is one of them. LoRaWAN is a technical solution for the physical and partially link network layers. The paper proposes an algorithm for ensuring traffic quality of service, latency, and data loss, as well as to provide an effectiveway of energy consumption. We impalement a prototype for Long Range (LoRa) based edge computing. © Springer Nature Switzerland AG 2020.