LIFX LAN Protocol

The LIFX LAN Protocol Developer Hub

Welcome to the LIFX LAN Protocol developer hub. You'll find comprehensive guides and documentation to help you start working with LIFX LAN Protocol as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Workflow Diagrams

Discovery

  1. Send Device::GetService as a UDP broadcast to port 56700 with the Frame tagged field set to one (1).
  2. All devices on LAN should respond back with one or more Device::StateService messages.
  3. Clients can then send further messages directly to individual devices or broadcast them.

Request with acknowledgement

  1. Discover devices as above.
  2. Set the source field with a unique 32-bit number, it does not have to be globally unique.
  3. Use the wrap around sequence as a message id.
  4. Set the ack_required field to 1
  5. Send message and it is acknowledged with Device::Acknowledgement having same source and sequence.

Request with response

  1. Discover devices as above.
  2. Set the source field with a unique 32-bit number, it does not have to be globally unique.
  3. Use the wrap around sequence as a message id.
  4. Set the res_required field to 1
  5. Send message and a corresponding semantic reply is sent back having same source and sequence.

Request with acknowledgement and response

  1. This is a mix of the above 2 workflows.
  2. The device sends back an acknowledgment initially and then a corresponding semantic reply.

Updated less than a minute ago

Workflow Diagrams


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.