摘要:The Propagation of information in wireless sensor networks (WSN) is critical to the communication. It is necessary and important to design a suitable communication primitive. Among these communication primitives, one distinguished primitive is Publish/Subscribe Communication Generics. This paper introduces current middleware of wireless sensor networks; analyze layer structure and problems of middleware. Then we design a message-oriented middleware system named WMOS (Wireless Message-Oriented System) which is developed on TinyOS. WMOS has three features mainly: first, WMOS is a distributed middleware system which is well-adapted to scalable system. WMOS utilizes conception of fully distributed and modular to make it appropriate for practical implementations. Second, we supply self-adapt multilevel QoS service to save power effectively. Third, we introduce topic/content double mode based on XML matched in WSN application. It guarantees effective query information than other middleware.