> For the complete documentation index, see [llms.txt](https://nviasoft.gitbook.io/nviasoft-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nviasoft.gitbook.io/nviasoft-docs/api-reference/item-parsing/gethostsetecidinfo.md).

# GetHostSetECIDInfo

### int GetHostSetECIDInfo(int lMsgId, ref uint\[] arrInt, ref string\[] arrStr)

Host가 S2F15W메시지를 이용하여 ECID의 ECVALUE를 변경 시도할 때 수신한 SECS메시지의 ECID 배열과 ECValues를 읽음

Parameters

<table data-header-hidden><thead><tr><th width="167" valign="top"></th><th width="115" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Name</td><td valign="top">Type</td><td valign="top">Description</td></tr><tr><td valign="top">lMsgId</td><td valign="top">int</td><td valign="top">수신한 Message의 ID</td></tr><tr><td valign="top">arrInt</td><td valign="top">uint[]</td><td valign="top">ECID를 저장할 배열</td></tr><tr><td valign="top">arrStr</td><td valign="top">string[]</td><td valign="top">ECV를 저장할 배열</td></tr></tbody></table>

```csharp
    uint[] arrECIDs = null;     // ECID들을 담을 배열
    string[] arrNewValues = null; // 변경될 값들을 담을 배열

    // 1. GetHostSetECIDInfo 호출 (ref 키워드로 배열 참조 전달)
    // 함수 내부에서 요청 개수에 맞게 배열이 자동으로 할당(new)됩니다.
    int nResult = m_gem.GetHostSetECIDInfo(lMsgId, ref arrECIDs, ref arrNewValues);

    // 2. 결과 확인
    if (nResult >= 0 && arrECIDs != null)
    {
        Console.WriteLine($"총 {arrECIDs.Length}개의 EC 변경 요청이 확인되었습니다.");

        for (int i = 0; i < arrECIDs.Length; i++)
        {
            Console.WriteLine($"[{i+1}] ECID: {arrECIDs[i]}, New Value: {arrNewValues[i]}");
            
            // 여기서 각 ECID별로 실제 장비 파라미터 업데이트 로직 수행
        }
    }
    else
    {
        Console.WriteLine($"EC 정보 일괄 추출 실패. 에러 코드: {nResult}");
    }
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nviasoft.gitbook.io/nviasoft-docs/api-reference/item-parsing/gethostsetecidinfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
