A Smart Meter Infrastructure for Smart Grid IoT Applications