Button Component

The button component provides an API for getting presses of a physical button on a machine.

Configuration

To use your button component, check whether one of the following models supports it.

For configuration information, click on the model name:

Model
Description

API

The button API supports the following methods:

Method NameDescriptionviam-micro-server Support
PushPush the button.
DoCommandExecute model-specific commands that are not otherwise defined by the component API.
CloseSafely shut down the resource and prevent further use.

Troubleshooting

If your button is not working as expected, follow these steps:

  1. Check your machine logs on the LOGS tab to check for errors.
  2. Review your button model’s documentation to ensure you have configured all required attributes.
  3. Click on the TEST panel on the CONFIGURE or CONTROL tab and test if you can use the button there.

If none of these steps work, reach out to us on the Community Discord and we will be happy to help.

Next steps

For general configuration, development, and usage info, see: