clj-artnet.impl.protocol.data

Helpers for ArtDataRequest/Reply configuration.

Provides pure functions for normalizing data configuration, utilized by impl.protocol.lifecycle. Extracted to resolve dependency cycles.

normalize-config

(normalize-config data)

Normalizes data configuration for ArtDataRequest responses.

Accepts: - Map with :responses containing response definitions - Map of response definitions directly

Response values: - String -> :text - byte array/ByteBuffer -> :data - Sequential -> byte array :data - Map -> {:text … :data …}

Returns {:responses {:by-type {…} :by-code {…}}}.