Skip to content

rust-v1.19.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 19:45
· 28 commits to main since this release
rust-v1.19.0

Added

  • Verb::repaints(): true for a verb that repaints every LED, which
    replaces a drawing.
  • Supported::grid: [columns, rows] of the cells of draw, from
    measurements.segment_grid of the device file.
  • A payload: reads ${frames}: a list with the base64 of each frame the
    command builds. ptReal uses it to carry ble frames over lan.
  • codec::frame::Token::Span and Token::SpanEnd: a length field over the
    bytes between them, 8 or 16 bits, either byte order.
  • codec::frame::Token::Groups: zone indices grouped by color, one byte each.
    An index named twice is codec::Error::ArgSyntax.
  • codec::frame::Token::Arg16Le: an integer field of two bytes, low byte
    first, written ${name:16le}.
  • DeviceHandle::scene() plays a Scene, and scene_named() plays one by
    name or code from the cached library. Devices::scene(), Verb::Scene.
  • scenes::fetch() stores a model's scene library in the cache folder, with
    no account. scenes::load() and scenes::find() read it back.
  • Role::Scene, Role::SceneBuiltin and the argument roles SceneCode,
    SceneParam and SceneType.
  • Error::Scenes carries scenes::Error: codes scene_list_missing,
    unknown_scene, ambiguous_scene and scene_fetch_failed, among others.
  • DeviceHandle::draw() stores a Drawing of the LEDs through role: draw:
    a cell list, or zones spread over every LED. The device keeps it.
  • Supported::draw: the LED count of role: draw.
  • Resolved::role_args() reads supplied arguments under the types of the
    entry that claims a role.
  • input::scene() reads a scene name or code from a host value.
  • Error::is_offline(): the device does not answer now.
  • Role::Draw: a stored drawing of the LEDs. Its arguments are marked
    role: colors and role: zones.
  • ArgSpec::Int carries default, and ArgOverride too: the codec sends it
    when the caller gives none. ArgSpec::default_value() reads it.
  • codec::encode_batch() encodes several commands, and carries the frames of
    consecutive commands that share an envelope in one envelope.
  • input::verbs() reads scene, a name or a code, into Verb::Scene. The
    apply() of the Node and Python bindings takes it.

Changed

  • A minor release can add an enum variant or a struct field: write a _ arm.
    See docs/versioning.md.
  • Breaking: DeviceHandle::segment() takes role: segment_color_masked
    alone. Resolution::Native fails: use draw() or open_stream().
  • DeviceHandle::segment() paints the 15 mask groups of the H6022 and the
    H61A0 over lan, in one ptReal datagram. The colors stay.
  • Breaking: DeviceHandle::open_stream() takes role: segment_color
    alone: ble and cloud fail with no_segment_command. Use segment().
  • DeviceHandle::gradient() reaches lan on the H6022 and the H61A0,
    through the ble frame in ptReal.
  • stream::reach() and describe report what segment() reaches: the 15
    groups of the mask over lan on the H6022 and the H61A0.

Deprecated

  • Segments::armed is always false: segment() arms no channel on any
    mode. Read Supported::segments alone.

Fixed

  • segment() arms no channel. A mode with role: segment_enable sent an
    arming frame and a settle wait before each masked paint.
  • A lan scan reply counts as an answer for the breaker of the device: the
    next command goes out with no Degraded or Down cooldown.