private static DeviceState GetDeviceState(IList <byte> buffer, Int32 index)
        {
            var state = BytesHelper.BytesToInt(buffer, index, 2, DataType.BigEndian);

            return((DeviceState)state);
        }