Apama Connectivity with Device Integration Platform Documentation 10.0 : Event Protocols : Control Events Sent to the Transport
Control Events Sent to the Transport
The Apama Connectivity with Device Integration Platform listens on the "DeviceIntegrationPlatform" channel for most requests. For all events sent to the transport, a CHANNEL constant is defined on the event type with the correct channel to send the event to.
See the com.apama.dip.RequestAllDevices event for refreshing the list of devices. Note that the com.apama.dip.RequestAllDevices event is sent to the channel defined by the CHANNEL constant on RequestAllDevices event. The device events are sent to the channel specified in the RequestAllDevices event and followed by a com.apama.dip.RequestAllDevicesComplete event with the requestId sent in the RequestAllDevices event.
The com.apama.dip.SubscribeMeasurements and com.apama.dip.UnsubscribeMeasurements events control subscriptions to measurements from assets. Specify the assetId as either an assetId from a device event or as "*" for a wildcard (use the WILDCARD constant). Subscriptions are reference counted by the transport, so send as many Unsubscribe events as Subscribe events have been sent to completely unsubscribe. Unless the subscribeToMeasurements configuration property is false, the transport automatically subscribes as if SubscribeMeasurements("*") had been sent at applicationInitialized time. Subscriptions to measurements also subscribe to events and alarms.
Send a com.apama.dip.DeviceOperation or com.apama.dip.DeviceOperationStringArray event to send an operation to a device. For example, to set a device's display and modify a set of relays, send:
com.apama.dip.DeviceOperation("12346084","c8y_Message",{"text":"800.0mm"})
com.apama.dip.DeviceOperationStringArray("12350781","c8y_RelayArray",["OPEN","CLOSED"])
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback