Robust LoRaWAN for distributed IoT