Send RAW Message

The Send RAW Message action sends a TR50 command in raw JSON format. Some of the TR50 commands have corresponding trigger actions, which are described in the Thing actions section. The remainder of TR50 commands can be issued using this Send RAW Message action. For information on the TR50 commands, see IoT Portal APIs.



Parameter description

Parameter Description
JSON  Message
A JSON formatted string in the format described in the TR50 Request section of the specific TR50 Command.
The commands can use the substitution string feature indicated by using $(string). The substitution variables entered in this parameter are then defined in the corresponding parameters in the Input tab.

For TR50 commands that need to include special characters, see:

S&F Profile he S&F profile to use if the data from the action can not be sent to the deviceWISE Cloud.

If the default "None" is selected, then the optional TR50 S&F feature will not be used for this action

If the data for this action is stored in a S&F queue, then the action's Store and Forward Route will be used to determine the next action to execute. For more information, see TR50 S&F Profile Management tab.

If the S&F route is taken, the Send Raw's Reply will not be set.

Input tab

Input Description
Command The value for the substitution variables entered for the Message parameter. You can define them to reference any started device, constant, trigger macro, trigger local variable, trigger static variable, or event variable available from the pull down list displayed for the Value cell for that row.

For TR50 commands that need to include special characters, see:

Timeout (secs) An optional timeout value, in seconds, to wait for the send to complete and return any reply data.
If not specified, a default of 5 seconds is used. The default can not be configured to a different value, but the Timeout (secs) parameter can be set in the action.
Connection Name The TR50 connection name of the connection to perform this action on.

 (Optional) If not specified, the name of the connection used is Default.

Output tab

Output Description
Request The actual JSON request message that was sent to the IoT Portal.
This output message will have all of the substitution variables (if using the compound string capability) and variable values inserted into request message
Reply

The returned JSON reply message from IoT Portal.
This reply message can be processed using other trigger actions, such as:


Related topics

IoT Portal APIs

Thing actions

Decode JSON

String

Regular Expression

Using compound strings