A Service-oriented Wireless Sensor Network for Power Metering