wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

Submit data to custom chips

Open akcyp opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe. When creating custom chip, we are limited to range-type controls, which makes it impossible to send complex data to the chip. According to https://docs.wokwi.com/chips-api/chip-json#controls

The type of the control. Currently, the only valid value is "range", which displays a slider

Use case All kind of external data receiver chips like RF receivers (NRF24L01), Bluetooth receivers (HC-06), LoRa receivers, etc.

Describe the solution you'd like Implement something similar to IR Receiver controls

image

Control definition type example:

{
  id: string;
  label: string;
  type: 'submit'; // or trigger
  fields: Array<{
    label: string;
    type: 'text' | 'integer';
  }>;
  triggerLabel: string; // 'Sent' by default
}

This will also need a change in Attributes API

akcyp avatar Aug 18 '24 17:08 akcyp