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

    Variable fragmentConst

    fragment: {
        BlockMic: typeof LorawanBlockMic;
        dataBlockIntKey: typeof lorawanDataBlockIntKey;
        Defragmenter: typeof LorawanDefragmenter;
        fragment: typeof lorawanFragFragment;
        MAX_FRAGMENTS: number;
        parityLine: typeof lorawanFragParityLine;
        PORT: number;
        prbs23: typeof lorawanFragPrbs23;
        session: typeof lorawanFragSession;
    }

    Fragmented data block transport, TS004-2.0.0, on port 201.

    A block too large for one frame goes across in pieces, followed by coded fragments that let a device solve for the ones it missed rather than asking for them again.

    Type Declaration

    • ReadonlyBlockMic: typeof LorawanBlockMic

      The code taken over a block as it arrives.

    • ReadonlydataBlockIntKey: typeof lorawanDataBlockIntKey

      Derives the key that signs a data block.

    • ReadonlyDefragmenter: typeof LorawanDefragmenter

      A session being put back together from whatever arrives.

    • Readonlyfragment: typeof lorawanFragFragment

      Builds one fragment of a session, coded or not.

    • ReadonlyMAX_FRAGMENTS: number

      The most fragments one session carries.

    • ReadonlyparityLine: typeof lorawanFragParityLine

      Lists the uncoded fragments a coded one is made of.

    • ReadonlyPORT: number

      The port this package is spoken on.

    • Readonlyprbs23: typeof lorawanFragPrbs23

      Steps the pseudo-random sequence the parity matrix is drawn from.

    • Readonlysession: typeof lorawanFragSession

      Says how many fragments a block takes, and how much padding the last one needs.

    const { nbFrag, padding } = fragment.session(block.length, 32)
    const receiver = new fragment.Defragmenter(nbFrag, 32, 8)
    for (let n = 1; !receiver.done; n++) {
    receiver.fragment(n, fragment.fragment(block, 32, n))
    }