Creating an Action Type
To create a new action type in Bytebeam console,
Access Actions Tab
Click on the Actions tab at the top
Go to Action Settings Tab and Initiate Action Type Creation
Navigate to the Action Settings tab and click on the Create Action Type button
Fill Details
Enter the action type name, choose the payload, select an icon, and optionally set a timeout duration from the dropdown. Then, click on the Submit button to create the metadata key.
Payload for Action Types
There are 3 payload options in 4 variations available while creating the action type.
None
None
You can choose this for action types like Shutdown which don’t need any payload to be sent to the device while triggering the action.
JSON
JSON
You can choose this for action types which need the JSON payload to be sent to the device while triggering the action.
JSON Data via form
JSON Data via form
You can choose this for action types like Update CAN Config, which enables JSON data to be sent via a form to the device while triggering the action.
To choose this option:
- Select JSON from the dropdown.
- Enable the Allow user to input data via form toggle.
- Enter the JSON Schema along with the JSON UI Schema while creating or editing the action type.
When the above configuration is used while creating the action type, it appears like this when triggering the action:
Text
Text
You can choose this for action types which need the payload in text format to be sent to the device while triggering the action.