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

    Class Device

    The root credentials over-the-air activation is built on.

    Index
    • Creates a device from its two EUIs and its application key.

      Parameters

      • devEui: Uint8Array

        The 8-byte device EUI.

      • appEui: Uint8Array

        The 8-byte application (join) EUI.

      • appKey: Uint8Array

        The 16-byte application key the join is secured with.

      Returns lorawan.Device

      If any credential is the wrong length.

    • Turns the join accept a network sent into the settings it grants.

      Parameters

      • bytes: Uint8Array

        The join accept exactly as it arrived.

      • devNonce: number

        The nonce the matching join request carried.

      Returns lorawan.JoinAccept

      The accepted join, which grants a session.

      If the MIC does not verify, or the frame is not a join accept.

    • Builds the join request this device broadcasts to activate.

      Parameters

      • devNonce: number

        A nonce that must never repeat for this device, since the network rejects a replayed one.

      Returns Buffer

      The join request to transmit.