We have a running OH2 instance and are reading the measurements via STTP with a local subscriber, which is our own code to write all data to a fast time series DB (written in go).
I would like to move the code to a different system (ideally k8s).
We have a running SimpleSubscribeReverse.go on a separate machine for testing.
But I dont find the settings for a reverse subscription in OH2.
How do I set this up?
In OH Manager UI app (not web page), go to Action > Manage Custom Actions. Go to last page of adapters by clicking chevron at bottom right >>, the click (+) Add New button. Give new adapter a name, e.g., STTP-REV, then select STTP Publisher from the Type menu. In the Connection String box, enter a string like the following server=localhost:7199, this needs to be the IP or DNS, a colon, then port number of the listening STTP Subscriber with server connection. Next check the Enabled box, then click Save button`.
Next, click on your newly created row, e.g., STTP-REV, then click the Initialize button.
Once the adapter is initialized it will start trying to connect to the specified STTP server-based subscriber, once connected STTP traffic should continue as normal.