Smart cities have been closely linked to the IoTtechnology, in which a large number of interconnecteddevices are important tools for measurementand data collection. As shown in Fig. 1,smart cities include smart building, smart transportation,smart healthcare, smart home, smart energy,and smart factory. The following discussionsillustrate these scenarios.