Hi,
If you want your device to establish a connection to OpenRemote then like the IBM IoT
example you posted then MQTT
is the way to go, there’s details here:
We’ll be updating these pages the next few days as they are a bit too cryptic and difficult to follow at the moment. Some simple steps:
- Create an instance of the
ClientEventProtocol
(this behind the scenes generates an OAuth client to allow you to programmatically authenticate withOpenRemote
). - Add an
asset
to themanager
using theUI
either using one of the existing asset types or creating aThing
and customising theattributes
that it would have - For each
attribute
that you want to access viaMQTT
you need to add a configuration item calledAgent Link
where the value should be as follows with the correctasset
id
inserted into thejson
:
{
"id": "ASSET_ID_OF_CLIENT_EVENT_AGENT"
}
You’ll then hopefully be able to follow the MQTT
guide.