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

    Class LorawanBackoff

    A device's count of how long the network has been silent.

    A network running adaptive data rate moves a device to the fastest rate and lowest power that still reach it. Once uplinks go unanswered, this says when to ask the network to answer and which of those settings to give back, a step at a time, as LoRaWAN 1.0.3 or TS001-1.0.4 describes.

    Index
    • Starts a count from zero.

      limit and delay default to the 64 and 32 RP002-1.0.5 recommends for every region. A delay of zero is taken as one.

      Parameters

      • version: LorawanVersion
      • Optionallimit: number | null
      • Optionaldelay: number | null

      Returns LorawanBackoff

    • get counter(): number

      How many uplinks have gone unanswered.

      Returns number

    • Counts a Class A downlink, which proves the network still hears the device and resets the count.

      Returns void

    • Counts one new uplink, and says what to do before sending it.

      Call it once per uplink the frame counter moves for, passing whether the device is already at its default data rate. A repeat of the same uplink does not count.

      Parameters

      • atDefaultDataRate: boolean

      Returns LorawanBackoffStep