node-dmx
    Preparing search index...

    Function encodeDiscoveryResponse

    • Build a DISC_UNIQUE_BRANCH discovery response frame for uid (ANSI E1.20 §5.1: 7×0xFE preamble + 0xAA separator, then each of the 6 UID bytes and the 2 checksum bytes transmitted as an (byte|0xAA), (byte|0x55) pair so a receiver can recover the original byte via AND — this is a distinct framing from a normal ACK/NACK response frame, with no 0xCC start code). The checksum is the 16-bit sum of the 12 encoded UID bytes, matching decodeDiscoveryResponse and verified against OLA's reference decoder.

      Parameters

      Returns Buffer