Resilient IoT