

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# IoT SiteWise OPC UA 資料來源模擬器
<a name="iotsitewise-opcua-data-source-simulator-component"></a>

IoT SiteWise OPC UA 資料來源模擬器元件 (`aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator`) 會啟動產生範例資料的本機 OPC UA 伺服器。使用此 OPC UA 伺服器模擬 AWS IoT SiteWise 閘道上 [IoT SiteWise OPC UA 收集器元件](iotsitewise-opcua-collector-component.md)讀取的資料來源。然後，您可以使用此範例資料來探索 AWS IoT SiteWise 功能。如需 AWS IoT SiteWise 閘道的詳細資訊，請參閱*AWS IoT SiteWise 《 使用者指南*》中的[AWS IoT SiteWise 在邊緣使用](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/gateways-ggv2.html) 。

**Topics**
+ [版本](#iotsitewise-opcua-data-source-simulator-component-versions)
+ [類型](#iotsitewise-opcua-data-source-simulator-component-type)
+ [作業系統](#iotsitewise-opcua-data-source-simulator-component-os-support)
+ [要求](#iotsitewise-opcua-data-source-simulator-component-requirements)
+ [相依性](#iotsitewise-opcua-data-source-simulator-component-dependencies)
+ [Configuration](#iotsitewise-opcua-data-source-simulator-component-configuration)
+ [本機日誌檔案](#iotsitewise-opcua-data-source-simulator-component-log-file)
+ [變更記錄](#iotsitewise-opcua-data-source-simulator-component-changelog)
+ [另請參閱](#iotsitewise-opcua-data-source-simulator-component-see-also)

## 版本
<a name="iotsitewise-opcua-data-source-simulator-component-versions"></a>

此元件具有下列版本：
+ 1.0.x

## 類型
<a name="iotsitewise-opcua-data-source-simulator-component-type"></a>

<a name="public-component-type-generic"></a>此<a name="public-component-type-generic-phrase"></a>元件是一般元件 (`aws.greengrass.generic`)。[Greengrass 核](greengrass-nucleus-component.md)會執行元件的生命週期指令碼。

<a name="public-component-type-more-information"></a>如需詳細資訊，請參閱[元件類型](develop-greengrass-components.md#component-types)。

## 作業系統
<a name="iotsitewise-opcua-data-source-simulator-component-os-support"></a>

此元件可以安裝在執行下列作業系統的核心裝置上：
+ Linux
+ Windows

## 要求
<a name="iotsitewise-opcua-data-source-simulator-component-requirements"></a>

此元件有下列需求：
+ Greengrass 核心裝置必須能夠在本機主機上使用連接埠 4840。此元件的本機 OPC UA 伺服器會在此連接埠執行。

## 相依性
<a name="iotsitewise-opcua-data-source-simulator-component-dependencies"></a>

當您部署元件時， AWS IoT Greengrass 也會部署其相依性的相容版本。這表示您必須符合元件及其所有相依性的要求，才能成功部署元件。本節列出此元件[發行版本的](#iotsitewise-opcua-data-source-simulator-component-changelog)相依性，以及為每個相依性定義元件版本的語意版本限制。您也可以在 [AWS IoT Greengrass 主控台](https://console.aws.amazon.com//greengrass)中檢視每個版本元件的相依性。在元件詳細資訊頁面上，尋找**相依性**清單。

下表列出此元件所有版本的相依性。


| 相依性 | 相容版本 | 相依性類型 | 
| --- | --- | --- | 
| [Greengrass 核](greengrass-nucleus-component.md) | >=2.3.0 <3.0.0 | 硬式 | 

如需元件相依性的詳細資訊，請參閱[元件配方參考](component-recipe-reference.md#recipe-reference-component-dependencies)。

## Configuration
<a name="iotsitewise-opcua-data-source-simulator-component-configuration"></a>

此元件沒有任何組態參數。

## 本機日誌檔案
<a name="iotsitewise-opcua-data-source-simulator-component-log-file"></a>

此元件使用以下日誌檔案。

------
#### [ Linux ]

```
{{/greengrass/v2}}/logs/aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator.log
```

------
#### [ Windows ]

```
{{C:\greengrass\v2}}\logs\aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator.log
```

------

**檢視此元件的日誌**
+ 在核心裝置上執行下列命令，以即時檢視此元件的日誌檔案。將 `{{/greengrass/v2}}`或 {{C：\\greengrass\\v2}} 取代為 AWS IoT Greengrass 根資料夾的路徑。

------
#### [ Linux ]

  ```
  sudo tail -f {{/greengrass/v2}}/logs/aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator.log
  ```

------
#### [ Windows (PowerShell) ]

  ```
  Get-Content {{C:\greengrass\v2}}\logs\aws.iot.SiteWiseEdgeOpcuaDataSourceSimulator.log -Tail 10 -Wait
  ```

------

## 變更記錄
<a name="iotsitewise-opcua-data-source-simulator-component-changelog"></a>

下表說明每個版本元件的變更。


|  **版本**  |  **變更**  | 
| --- | --- | 
| 1.0.0 | 初始版本。<br />新增對 Windows Server 2016 或更新版本的支援。 | 

## 另請參閱
<a name="iotsitewise-opcua-data-source-simulator-component-see-also"></a>
+ *AWS IoT SiteWise 《 使用者指南*》中的[什麼是 AWS IoT SiteWise？](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/what-is-sitewise.html)。