Sending Events to Another Resource

An Observation can be configured to send events directly to another resource rather than sending them to an Edge Action for processing at the edge, or to the cloud for processing by a Cloud Action. This is useful in cases where you need to forward events directly from one resource to another (e.g., to send the value of a Sensor or Input to the mangOH Red's LCD screen). An Observation for the destination resource can then be used to process the event.

The steps below illustrate how to configure an Observation to send events to another Resource. In this example, the Observation creates events from the mangOH Red's built-in light sensor and sends them to the Resource for the mangOH Red's built-in LCD screen:

  1. Navigate to Device > Observations.
  2. Click Add Observation.
  3. Click the Observed resource drop down and select /redSensor/light/value.
  4. Set Send events to to Resource.
  5. Click on the Destination resource drop down to display the resources and select /lcd/txt2.
  6. Enter an Observation name and click Save. The second line of text on the LCD should change to indicate the current light level.