Adaptive data synchronization algorithm for IoT-oriented low-power wide-area networks