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

    Class LorawanClockSync

    The clock synchronization package running on a device, TS003-2.0.0.

    Index
    • Starts the package.

      selfManaged marks a device that keeps its own periodicity and answers a server that tries to set one with the not-supported bit.

      Parameters

      • OptionalselfManaged: boolean | null

      Returns LorawanClockSync

    • get answerDue(): boolean

      Whether the device owes its server an answer.

      Returns boolean

    • get periodS(): number

      The seconds between requests, as the server last set them.

      Returns number

    • get token(): number

      The token the next request will carry.

      Returns number

    • Writes the answer the device owes, or an empty buffer when it owes none.

      Parameters

      • deviceTime: number

      Returns Buffer

    • Builds the request that asks a server for a correction, section 3.2.

      Parameters

      • deviceTime: number
      • OptionalansRequired: boolean | null

      Returns Buffer