--- title: "LIFX Unit Test (Wireless Lights)" slug: "lifx-unit-test-wireless-lights" updated: 2023-11-03T16:45:29Z published: 2023-11-03T16:45:29Z canonical: "support.tulip.co/lifx-unit-test-wireless-lights" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # LIFX 单元测试(无线灯) ## LIFX 单元测试(无线灯) *将现成的 WiFi 灯泡与郁金香一起使用* **目的** 本文旨在介绍将 LIFX 灯泡与 Tulip 集成所需的步骤。 **应用视频概述** [Embedded content](https://www.youtube.com/embed/PYf9gkLsNv4) **设置说明** 设置 LIFX 灯泡是大部分设置工作。你需要按照灯泡附带的说明将其连接到 WiFi 网络。连接后,您需要在 LIFX 创建一个账户,并获得一个 "令牌"。 您可以按照以下说明获取令牌: [https://api.developer.lifx.com/docs/introduction](https://api.developer.lifx.com/docs/introduction) 这款灯可以使用几种不同类型的身份验证。郁金香单元测试应用程序依赖于基本身份验证:将应用程序令牌作为用户名传入。 从库中安装应用程序后,导航到 LIFX 连接器。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/LIFX%20Unit%20Test%20%28Wireless%20Lights%29_305129595.png) 点击 "生产、测试和开发 "按钮,然后点击 "编辑标头"。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/LIFX%20Unit%20Test%20%28Wireless%20Lights%29_305130460.png) 最后,将 "YOUR TOKEN HERE(您的令牌在此处)"替换为您的令牌。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/LIFX%20Unit%20Test%20%28Wireless%20Lights%29_305131021.png) 现在,您的应用程序已设置完毕!加载单元测试应用程序时,您将看到设备(灯)列表。点击其中一个即可更改其颜色。