Skip to content

generate functions for sending messages #226

@derberg

Description

@derberg

After we merge #220 the last bad user experience is 👇🏼

    client.app.send(
        { command: "off" },
        {},
        "smartylighting/streetlights/1/0/action/12/turn/on"
    );

we should generate

function turnOn(message){
    app.send(
        message,
        {},
        "smartylighting/streetlights/1/0/action/12/turn/on"
    );
}

so later user can just do:

turnOn({ command: "off" })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions