Mode switch - Adaptive use of delay-sensitive or energy-aware communication in IEEE 802.15.4-based networks