Abstract:For the problem that 6LoWPAN(IPv6 low power wireless personal area network) wireless sensor network has poor scalability in design and application and is incompatible with IPv4 environment, a wireless sensor network based on 6LoWPAN and MQTT(message queuing telemetry transport) was designed and implemented. Among them, the wireless sensor network node works as MQTT client to communicate with MQTT server, and the border router implements communication between wireless sensor network node and IPv4 network through NAT64(network address translation IPv6 to IPv4). Finally, the designed wireless sensor network was applied to the smart home scenario, the performance of wireless sensor network and border router was evaluated, and the implementation of the system function was tested. Results show that the wireless sensor network has good connectivity and stability, the data uploading and command receiving of the wireless sensor node is stable and reliable, the border router works stably, and the system has good performance.