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).
- Discovery
- Request with acknowledgement
- Request with response
- Request with acknowledgement and response
- Send Device::GetService as a UDP broadcast to port 56700 with the Frame tagged field set to one (1).
- All devices on LAN should respond back with one or more Device::StateService messages.
- Clients can then send further messages directly to individual devices or broadcast them.
- Discover devices as above.
- Set the source field with a unique 32-bit number, it does not have to be globally unique.
- Use the wrap around sequence as a message id.
- Set the ack_required field to 1
- Send message and it is acknowledged with Device::Acknowledgement having same source and sequence.
- Discover devices as above.
- Set the source field with a unique 32-bit number, it does not have to be globally unique.
- Use the wrap around sequence as a message id.
- Set the res_required field to 1
- Send message and a corresponding semantic reply is sent back having same source and sequence.
- This is a mix of the above 2 workflows.
- The device sends back an acknowledgement initially and then a corresponding semantic reply.