Text this: Nature inspired optimization of IoT network for delay resistant and energy efficient applications