# EdgeRSU 상태정보 (제공)

## EdgeRSU 상태정보 조회 API (GetEdgeRSUStateInfo)

### 요청 URL

```url
https://service.mqnicrnd5.com/api/v1/esi/offer/gesi
```

### 연계 주기&#x20;

요청 시&#x20;

### 프로토콜

HTTPS

### HTTP 메서드

GET

### 데이터 포맷

{% file src="https://1360411665-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFu56IUROVbsERWF6iOsE%2Fuploads%2FpRu8N2IOUnFWSHDZYPy8%2FEdgeRSU%E1%84%89%E1%85%A1%E1%86%BC%E1%84%90%E1%85%A2%E1%84%8C%E1%85%A5%E1%86%BC%E1%84%87%E1%85%A9(%E1%84%8C%E1%85%A6%E1%84%80%E1%85%A9%E1%86%BC)_gesi.pdf?alt=media&token=8e806cdb-7a3f-494a-87c6-b6f51d2a4ff4" %}

### 참고사항

API를 요청할 때 다음 예와 같이 HTTP 요청 헤더에 접근 토큰(Access Token) 을 추가해야 합니다. <mark style="color:purple;">**접근 토큰 앞에 "Bearer " 문자열을 추가해야 한다는 점에 주의하세요.**</mark>

```
> GET /api/v1/esi/offer/gesi?edgeRsuId=RSU00001,RSU00006&stDttm=202503251019&edDttm=202505261050 HTTP/2
> Host: service.mqnicrnd5.com
> User-Agent: curl/7.64.1
> Accept: */*
> Authorization: Bearer <접근 토큰>
```

### 요청 예시

```bash
curl --location 'https://service.mqnicrnd5.com/api/v1/esi/offer/gesi?edgeRsuId=RSU00001,RSU00006&stDttm=202503251019&edDttm=202505261050' \
--header 'Authorization: Bearer <접근 토큰>'
```

### 응답 예시

```json
[
    {
        "edgeRsuId": "RSU00001",
        "colctDt": "2025-05-26 10:37:48.747054",
        "csn": {
            "sensorType": "AL",
            "sensorNo": "01"
        },
        "opCode": "",
        "data": [
            {
                "timestamp": 0,
                "powerCtrlPortStat": "1",
                "fanCtrlPortStat": "1",
                "heaterCtrlPortStat": "1",
                "doorStat": "1",
                "sensorStat": "1",
                "tp": null,
                "hd": null,
                "cds": null,
                "vsbl": null,
                "cntlrResetBttonCtrlCnt": null,
                "cntlrPowerBttonCtrlCnt": null,
                "extrlADCMeas": null
            }
        ]
    },
    {
        "edgeRsuId": "RSU00006",
        "colctDt": "2025-03-25 10:19:38.995564",
        "csn": {
            "sensorType": "AC",
            "sensorNo": "SN-246"
        },
        "opCode": "",
        "data": [
            {
                "timestamp": 1710915990965,
                "powerCtrlPortStat": "ON",
                "fanCtrlPortStat": "OFF",
                "heaterCtrlPortStat": "OFF",
                "doorStat": "Closed",
                "sensorStat": "Active",
                "tp": 8.902050926905144,
                "hd": 7.865384655529095,
                "cds": null,
                "vsbl": null,
                "cntlrResetBttonCtrlCnt": null,
                "cntlrPowerBttonCtrlCnt": null,
                "extrlADCMeas": null
            },
            {
                "timestamp": 1710915990965,
                "powerCtrlPortStat": "ON",
                "fanCtrlPortStat": "ON",
                "heaterCtrlPortStat": "OFF",
                "doorStat": "Closed",
                "sensorStat": "Inactive",
                "tp": 6.997206786409751,
                "hd": 20.66000028514754,
                "cds": null,
                "vsbl": null,
                "cntlrResetBttonCtrlCnt": null,
                "cntlrPowerBttonCtrlCnt": null,
                "extrlADCMeas": null
            },
            {
                "timestamp": 1710915990965,
                "powerCtrlPortStat": "OFF",
                "fanCtrlPortStat": "ON",
                "heaterCtrlPortStat": "OFF",
                "doorStat": "Open",
                "sensorStat": "Active",
                "tp": 34.456575610437746,
                "hd": 8.914406771478834,
                "cds": null,
                "vsbl": null,
                "cntlrResetBttonCtrlCnt": null,
                "cntlrPowerBttonCtrlCnt": null,
                "extrlADCMeas": null
            },
            {
                "timestamp": 1710915990965,
                "powerCtrlPortStat": "OFF",
                "fanCtrlPortStat": "OFF",
                "heaterCtrlPortStat": "OFF",
                "doorStat": "Open",
                "sensorStat": "Active",
                "tp": 34.343332283270335,
                "hd": 33.67466096549162,
                "cds": null,
                "vsbl": null,
                "cntlrResetBttonCtrlCnt": null,
                "cntlrPowerBttonCtrlCnt": null,
                "extrlADCMeas": null
            },
            {
                "timestamp": 1710915990965,
                "powerCtrlPortStat": "ON",
                "fanCtrlPortStat": "ON",
                "heaterCtrlPortStat": "OFF",
                "doorStat": "Closed",
                "sensorStat": "Inactive",
                "tp": 1.7239669610661812,
                "hd": 96.8123973957761,
                "cds": null,
                "vsbl": null,
                "cntlrResetBttonCtrlCnt": null,
                "cntlrPowerBttonCtrlCnt": null,
                "extrlADCMeas": null
            }
        ]
    }
]
```

&#x20;&#x20;
