IoT Architecture and Security Mecanisms for an Energy Management System in a Smart Microgrid | IEEE Conference Publication | IEEE Xplore