Application-driven, energy-efficient communication in wireless sensor networks