Adaptive Resource Allocation Algorithms For Data And Energy Integrated Networks Supporting Internet of Things