I am trying to parse the LIFX headers according to their documentation .
Here is the code I have:
data = <<36, 0, 0, 52, 33, 235, 176, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0>> << size :: little-integer-size(16), origin :: little-integer-size(2), tagged :: size(1), addressable :: size(1), protocol :: little-integer-size(12), rest :: bitstring >> = data IO.puts protocol
This tells me that protocol is 1027 , but the LIFX documentation says it should be 1024. I confirmed with LIFX RubyGem that this field value is 1024.
Why in Elixir do I see this value 1027 and not 1024?