Text this: Energy-aware determination of compression for low latency in solar-powered wireless sensor networks