Bandwidth optimization and energy management in real-Time wireless networks