/// <summary> /// HBus compatible constructor /// </summary> /// <param name="data"></param> /// <param name="index"></param> public DeviceInfo(byte[] data, int index = 0) : this() { var stack = new SimpleStack(data, index); Index = stack.PopByte(); Name = stack.PopName(); //Address = stack.PopAddress(); Description = stack.PopString(); Location = stack.PopString(); Class = stack.PopString(); Hardware = stack.PopString(); Version = stack.PopString(); Actions = stack.PopStringArray(); }