Contents

init(element:fromBytes:timestamp:)

Creates a value for an HID element.

Declaration

init(element: HIDElement, fromBytes: Data, timestamp: SuspendingClock.Instant)

Parameters

  • element:

    The element associated with this data.

  • fromBytes:

    The data as an array of bytes.

  • timestamp:

    The time that the value was created.

Discussion

The created value can be used to send a request to the associated device to update it’s current value for the element using HIDDeviceClient.ProvideElementUpdate.

See Also

Create a HID element from a value