IoT Solutions for Sub-metering