Reliability and availability of IoT devices in resource constrained environments