Optimal resource selection framework for Internet-of-Things. (September 2020)