public LifxDataPacket(LifxCommand messageToPackage) { mPacketData = new byte[messageToPackage.GetRawMessage().Length + 36]; Size = (ushort)(messageToPackage.GetRawMessage().Length + 36); Protocol = STANDARD_PROTOCOL; PacketType = messageToPackage.PacketType; Payload = messageToPackage.GetRawMessage(); }
public LifxDataPacket(LifxCommand messageToPackage) { mPacketData = new byte[messageToPackage.GetRawMessage().Length + 36]; Size = (ushort)(messageToPackage.GetRawMessage().Length + 36); Protocol = STANDARD_PROTOCOL; PacketType = (ushort)messageToPackage.CommandPacketType; //PacketTimestamp = messageToPackage.TimeStamp; // breaks everything... maybe a fix in the firmware update? Payload = messageToPackage.GetRawMessage(); }