pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class LorawanCfList

    The optional channel list at the end of a join accept.

    It keeps the sixteen bytes as they arrived and reads either form out of them, so nothing a network sent is lost to a type this build does not recognize.

    Index
    • get bytes(): Buffer

      The sixteen bytes, as a join accept carries them.

      Returns Buffer

    • get typeByte(): number

      The CFListType byte the list ends with.

      Returns number

    • The six mask groups of a type 1 list, or null for a list of any other type.

      Returns number[] | null

    • The channels a type 1 list enables, lowest first, which is empty for a list of any other type.

      Returns number[]

    • Whether a type 1 list enables a channel, or null for a list of any other type or a channel past the 96 the groups cover.

      Parameters

      • channel: number

      Returns boolean | null

    • The five frequencies of a type 0 list in hertz, 0 for an unused slot, or null for a list of any other type.

      Returns number[] | null

    • Builds a type 1 list from six mask groups, where bit n of group g enables channel g * 16 + n.

      Parameters

      • masks: number[]

      Returns LorawanCfList

    • Builds a type 0 list from five frequencies in hertz, with 0 for a slot left unused.

      Throws if there are not five, or a frequency is not a whole number of hundreds of hertz from 100 MHz to just under 1.678 GHz.

      Parameters

      • frequenciesHz: number[]

      Returns LorawanCfList