In smart cities, the electricity is an essential component since it preserves a certain level of residents' life quality and provisions the entire spectrum of their economic activities. Thus, a smart way is essential to develop cities without disregarding energy issues. In this scope, the smart grid paradigm offers power supply in an efficient, sustainable and economical manner with minimal impact on the environment and can meet the future energy demands. However, real-time monitoring and control of the smart grid (SG) for continuous and quality-aware power supply in smart cities (SCs) is challenging and requires an advanced quality of service (QoS)-aware communication framework. In this context, this research aims to present a novel data-gathering scheme by using the Internet of software-defined mobile sinks (SDMSs) and wireless sensor networks (WSNs) in the smart grid. The extensive simulation results conducted through the EstiNet9.0 indicate that the designed scheme outperforms existing approaches and achieves its defined goals for events-drive applications in the SG.