Application of Reinforcement Learning to Sensor Node Energy management.