clj-artnet.impl.protocol.diagnostics

Diagnostics logic (Art-Net 4).

ack-actions

(ack-actions state sender acknowledgements)

Generates ArtDiagData actions for acknowledgements.

Per Art-Net 4, only sends diagnostics if the sender has subscribed via ArtPoll Flags bit 2.

default-priority-code

default-rate-limit-hz

nanos-per-second

normalize-config

(normalize-config diagnostics)

Normalizes diagnostics configuration options.

priority-code

(priority-code value)(priority-code value default-value)

Normalizes priority to Table 5 code. Defaults to :dp-low.

refresh-state

(refresh-state state)(refresh-state state now)

Prunes subscribers and updates warnings. Returns state subscribers.

resolve-diagnostic-targets

(resolve-diagnostic-targets state message-priority)

Resolves diagnostic message targets.

Returns: [state {:targets :effective-priority int :subscriber-count int}]