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

    Class DutyCycle

    The split between the time a node works and the time it sleeps.

    Index
    • Creates a duty cycle that spends fraction of periodUs awake.

      The fraction is clamped to 0 through 1, and one that is not a number keeps the node asleep for the whole period. The time awake is rounded down to a whole microsecond and the rest of the period is spent asleep, so the two always add up to the period.

      Parameters

      • periodUs: number
      • fraction: number

      Returns power.DutyCycle