Design and analysis of adaptive hierarchical low-power long-range networks