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

    Interface NodeOptions

    The parts a node runs a profile with.

    interface NodeOptions {
        drive?: (on: boolean) => unknown;
        encode?: (reading: number) => string | Buffer<ArrayBufferLike>;
        link: Link;
        policy?: Policy | PolicyRegistry;
        profile: Profile;
        read: () => number | Promise<number>;
    }
    Index
    drive?: (on: boolean) => unknown

    Switches the output a profile drives; required for a setpoint profile.

    encode?: (reading: number) => string | Buffer<ArrayBufferLike>

    Writes a reading as the payload published; the number as JSON text unless given.

    link: Link

    The link each reading is published over, connected before the node runs.

    What decides each reading: the profile's own controller unless given, a policy of the program's own, or a registry that resolves the profile's control kind.

    profile: Profile

    The profile the node runs.

    read: () => number | Promise<number>

    Takes one reading, in the unit the profile reads.