Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sv translation
languageja

プロトコル SDK

SDK: https://github.com/BellaDati/IoT-Co-Custom-Protocol-SDK

OPC UAプロトコルの実装例: https://github.com/BellaDati/IoT-Co-OPC-UA-Extension

新しいSenderのアクションを追加する例:https://github.com/BellaDati/IoT-Co-SDK-Example

依存関係

Maven依存関係

<dependency>
<groupId>com.belladati</groupId>
<artifactId>iot-protocol-sdk</artifactId>
<version>${protocol.sdk.version}</version>
</dependency>

実装

ReceiverEndpointインターフェースは、カスタムプロトコル処理の実装をサポートするために提供されています。任意のプロトコルを介して任意のデバイスへの接続を実装し、メッセージプロセッサの提供されたインスタンスへの受信データを処理できます。

java.util.ServiceLoaderは、この実装をreceiverにロードするために使用されます。基本的に、実行する必要があるのは、実装クラスの完全修飾名を含むファイル META-INF/services/com.belladati.iot.collector.generic.receiver.endpoint.ReceiverEndpointを作成することだけです。

例 com.belladati.iot.ext.MyCustomEndpointImpl

実行

この拡張機能がすべての依存関係とともに単一のJARにバンドルされると (または、依存関係をクラスパスに追加することもできます)、次のような変更されたコマンドでReceiverを起動できます。

java -cp iot-collector-generic-receiver-prod.jar;iot-ext-1.0-SNAPSHOT-jar-with-dependencies.jar com.belladati.iot.collector.common.BellaDatiLauncher -Dapplication.name=receiver1

従来のjava -jar.の代わりに。