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 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.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!