How to create 2 stream in cloud action

To reduce Cloud action windows, customer request the following. We would like to create demonstration code, could you please advise how to implement it.

-Customer will get 2 sensor data from edge device (example, light sensor data and GNSS location data in mangOH yellow)

-Customer plan to upload both data to Octave at every 10min

-Customer transfer these data in 1 cloud action to AWS server from Octave (I use webhook in demonstration)

I know that Octave can transfer 1 stream data to other server in 1 cloud action. Can Octave support to send any stream data in 1 cloud action?

Hello Takashi,

Please reference the Octave documentation to understand how to orchestrate data for your scenario.

Thanks, I succeeded to send 2 data to 1 stream.
I have one question.
I set light sensor from “BUILD->Device->Resource” windows and created “light” streams.
If I create this multiple resources at Edge action, I saw this data in “Default” streams, too.
How many message do I use, only 1 message or 2 message?

Hello Takashi,

Messages can be generated via observations directly to the cloud or sent to the edge actions for instance. The edge action (on the device) can be programmed to send the data to the cloud or perform some action on the device without sending a message to the cloud. If your edge action sends data to 2 cloud streams, that is counted as 2 messages.

If you send data via observations via 2 paths, one direct to the cloud (:default) and one to and edge action that then sends the data to another stream, that will be 2 messages.

Customer would like to send multiple resources in a single event and stream as 1 message. Please advise how to do it?

Hello Takashi,

Please see the following link with examples.


I understood that customer should select “Thermometer” to “Edge Action” in Observation as main stream.

But I do not know which ”Send events to” should customer select “Humidity” and “Wind Speed” in Observation.

Please advise it.

Hello Takashi,

If customer utilizes thermometer to edge action and wishes to include Humidity and Wind Speed, the edge action would receive the messages in the stream created by the observation. for the thermometer and the use the datahub read to gather the humidity and speed from those resources (they have to be enabled and have a polling period on those resources. The edge action would combine the thermometer data from the stream with the humidity and speed (read from the datahub) and send the entire payload to a stream for processing from a cloud action. when you read data using the datahub, this does not count as a message.

Here is an example of reading a resource (could be humidity) where the resource is enabled and polling is set.

var res_datetime = Resource.readValue(“/util/time/value”);

Here you see it added to the input stream data (thermometer)

function(event) {

return {
“cl://”: [{
“temperature”: event.value, // this is from the messages in the stream as input to the edge action
“humidity”:‘/humidity/value’,0).value, // old datahub read method
“wind_speed”: Datahub.query(‘wind_speed’,‘mean’,10),
“datetime”: Resource.readValue(“/util/time/value”) // new datahub read method