To overcome this barrier, low-power wide-area network (LPWAN) is a new solution in the context of a wireless breakthrough in the communication sector. Unlike WiFi and ZigBee, LPWAN enables massive wireless connections covering long distances with minimum power consumption and maintenance [
11]. Two representative technologies of LPWAN are the narrow-band Internet of Things (NB-IoT) [
12] and Long Range (LoRa) technology [
13]. The NB-IoT is inherited from cellular communication, and seamlessly works on the existing global systems for mobile (GSM) and Long Term Evolution (LTE) networks in licensed frequency bands [
14]. Many telecom operators have been ambitiously working on weaving together city-scale Internet of Things (IoT) networks based on NB-IoT. In contrast, LoRa technology operates in the unlicensed frequency band, so that end users are free to build up LoRa gateways that are similar to house-owned WiFi routers. Therefore, LoRa technology is perfect for outlying regions without cellular network coverage, or for establishing private networks with specific requirements for quality and security [
15].