Giter VIP home page Giter VIP logo

lifx-protocol-docs's Introduction

LIFX Developer Home | LAN Protocol. LiFi Labs, Inc. © 2015. All rights reserved. Usage of this documentation is bound by the [LIFX Developer Terms] (http://developer.lifx.com/terms.html).

LIFX LAN Protocol V2

Table of contents

Overview

This documentation is intended for third-party developers creating client applications, which interact with LIFX lightbulbs over the LAN by sending and receiving, then parsing LIFX Protocol messages.

The LIFX Protocol consists of messages that are used to control and obtain the state of devices (specifically lightbulbs).

Each message is composed of a header and a payload.

Headers contain the message size, type, routing, response flags and more. Payloads contain information germane to a specific message type.

To interact with LIFX lightbulbs over the Internet (Cloud or WAN), see the LIFX HTTP API documention.

Transport layer

The LIFX Protocol utilizes UDP/IP for all messages covered by this documentation.

Numeric data-type byte-order is little-endian

Message description

All LIFX Protocol messages start with the header, which is covered in the Header description.

The header contains the message type field. There are two categories of messages detailed in this documentation, (1) messages understood by all devices* and (2) those messages specific to lightbulbs.

The message type determines the format of payload. The various message payloads are covered in the Device and Light messages documentation.

Most interactions consist of a number of messages transmitted between the client and the device. Some common message exchanges are shown in the Workflow diagrams.

Often, device discovery is a good place to start. In which case, the discovery workflow, along with the Device::GetService and the Device::StateService messages are relevant.

* Protocol designers like to think ahead. Don't get too excited ... LIFX only manufactures and sells network connected lightbulbs !

Limits

  • Maximum recommended message transmit rate to a device: 20 per second

Disclaimer

Using undocumented message types or field values, sending poorly formed messages or excessive message rates to LIFX devices and/or LIFX services may result in unexpected device or protocol message behavior.

lifx-protocol-docs's People

Contributors

deepfryed avatar smarthall avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.