Skip to content

Remove "adapter stack" from interface(-stream) #492

@mStirner

Description

@mStirner

Use/handle interfaces as "raw stream" to the underlaying device.
But to be able to (un-)wrap command payloads, like creating modbus requests/response, remove the adapter stack from interface stuff, and implement methods to set/unset adapter stacks.

Pseudo code:

        const Modbus = require("../adapter/modbus.js");
        const iface = "bla bla bla";

        const stream = iface.adapter([
            Modbus.FNC_6,
        ]);

Or completly remove it and let the plugin author/device integrator deal with it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions