(In recent years, wireless sensor networks have attracted attention from all walks of life because of their many advantages. Has a very broad development prospects. TinyOS is an embedded operating system for feature schemes of wireless sensor networks. The characteristics of TinyOS operating system and nesC language are briefly introduced. And the basic process of writing application programs according to TinyOS.)