Skip to content

Add FeatureDescriptor and input/output StepCount #303

Description

@heavyrubberslave

When I wanted to upgrade to v4 of this library I realized that some information is not exposed anymore, namely a descriptor of the feature and the step count.

I needed those to give the features a proper label in the UI and to make the slider jump the right amount (min: 0, max: 100, stepCount: 25 = 5 slider positions: 0, 25, 50, 75, 100).

In v3 I access them like this:

device.messageAttributes.ScalarCmd[0].FeatureDescriptor
device.messageAttributes.ScalarCmd[0].StepCount

Is this information not accessible on purpose? If not, then I'm happy to make a PR to expose it again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions