binary.decode Action
This trigger action accepts a binary encoded string and decodes it to an object.
Action
On the Adding trigger page, under Binary, drag binary.decode to the canvas.
Canvas
When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.
The left routing point (red) is the failure route. This route will be taken if there is an error during execution.
The right routing point (green) is the success route. This route will be taken if action executes successfully.
Form
Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
Byte Order |
String |
Yes |
If the data is Little Endian or Big Endian. |
Offset |
Integer |
|
The number of bytes to skip before processing the value of Input. |
Input |
String |
Yes |
The binary string to be decoded. |
Rules |
String/JSON |
Yes |
The rules defining how the binary input string is to be decoded. |
Action variables
Name |
Type |
Description |
---|---|---|
Value |
Object |
The object that is the result of decoding the input. For more information regarding action variables, see alarm.current Action. |