Avena Webapp API - v0.0.1
    Preparing search index...

    Function liveLabJackChannelSubject

    • Builds the live-data subject for one LabJack channel.

      Legacy configs give <root>.<asset>.data.chNN, with the root used as configured and the asset padded to three digits. Structured configs give <root>.<site>.<box>.<source>.live.chNN with every token sanitized. Missing values fall back to unknown-site and unknown-box, and the source falls back from source_id to labjack_name to asset<NNN>.

      Parameters

      Returns string

      The subject the streamer publishes that channel's FlatBuffer Scan messages on.

      liveLabJackChannelSubject({ nats_subject: "avenabox", asset_number: 1456 }, 11);
      // "avenabox.1456.data.ch11"
      liveLabJackChannelSubject({
      nats_subject: "avenars", asset_number: 1456,
      site_id: "i69", box_id: "i69-mu1", source_id: "i69-lj2",
      }, 11);
      // "avenars.i69.i69-mu1.i69-lj2.live.ch11"