Smart energy refers to upgrading the energy grid so it can support bi-directional flow of energy and data. Such an endeavor involves adding connectivity, communication, and security features not only to the smart grid but to the many devices connected to a smart grid. But how do you ensure all devices on the network are secure? This paper examines two key software aspects, communication and security, and how developers can build even smarter connected devices.