Energy constrained wireless switching