fake

Configure a fake generic component to test implementing a generic component on your machine without any physical hardware:

{
  "name": "<your-fake-generic-component-name>",
  "model": "fake",
  "api": "rdk:component:generic",
  "attributes": {}
}

No attributes are available for the fake generic component. See GitHub for API call return specifications.

Test the generic component

After you configure your generic component, open the generic’s panel on the CONTROL tab. Use the card to send arbitrary commands to the resource with DoCommand().

The generic component in control panel.

The example above works for interacting with the generic component model shown in Deploy control logic, but other components require different commands depending on how DoCommand() is implemented.