Difference between revisions of "Observations production and consumption"

From AMTech WikiDocs
Jump to: navigation, search
Line 7: Line 7:
  
 
==Observations Consumed==
 
==Observations Consumed==
The M2MBridge consumes 2 observation types, if those observations have been configured at the observation production configuration
+
The M2MBridge may consume observations of two different types, when those observations have been configured in the observation production configuration.
# '''observationresourcecrud''' when a property of things instance related with the M2MBridge changes
+
# '''observationresourcecrud''' when a property of a thing instance related to the M2MBridge changes.
 
# '''command''' - Observation types implemented for a plugin as a [[Actions#Send_command|command]] to be sent to devices. The M2MBridge validates that it has a valid [[Sensor%27s_network#targetthings|targetthings]]  (the instance type that will process the [[Actions#Send_command|command]])
 
# '''command''' - Observation types implemented for a plugin as a [[Actions#Send_command|command]] to be sent to devices. The M2MBridge validates that it has a valid [[Sensor%27s_network#targetthings|targetthings]]  (the instance type that will process the [[Actions#Send_command|command]])
  
 
==Observations Validation==
 
==Observations Validation==
The validation of the [[Activities#Observation_production_configuration|observation production configuration]] validates that only one topic has been set for Asynchronous operations [[Sensor%27s_network#CRUD_observation|observationresourcecrud]] and [[Actions#Send_command|command]]
+
The validation of the [[Activities#Observation_production_configuration|observation production configuration]] validates that only one topic has been set for asynchronous operations [[Sensor%27s_network#CRUD_observation|observationresourcecrud]] and [[Actions#Send_command|command]]

Revision as of 12:27, 12 October 2016

Observations Produced

In addition to custom observations defined by plugins, the M2MBridge can produce observations of three different standard observation types regarding its life-cycle. The standard observations are only produced if they have been configured as such in the bridge instance used to clone.

  1. m2mBridgeStarted when load process has finished. Need to be configured in the "Bridge Started Observation" property of the bridge instance used as template to clone.
  2. m2mBridgeStopped when unload process has finished. Need to be configured in the "Bridge Stopped Observation" property of the bridge instance used as template to clone.
  3. m2mBridgeError if an error occurred at the M2MBridge logic. Need to be configured in the "Bridge Error Observation" property of the bridge instance used as template to clone.
  4. Observation types produced by plugins (plugin implementation dependent)

Observations Consumed

The M2MBridge may consume observations of two different types, when those observations have been configured in the observation production configuration.

  1. observationresourcecrud when a property of a thing instance related to the M2MBridge changes.
  2. command - Observation types implemented for a plugin as a command to be sent to devices. The M2MBridge validates that it has a valid targetthings (the instance type that will process the command)

Observations Validation

The validation of the observation production configuration validates that only one topic has been set for asynchronous operations observationresourcecrud and command