Skip to content

mqtt-publisher: Cannot read property 'publish' of undefined. #10

@leo-nerd

Description

@leo-nerd

Hi. Thanks for the tutorials. I followed your 4-mqtt tutorial to the letter (including setting it up backwards!) and I get this error message in the node.script UI for mqtt-publisher:
Cannot read property 'publish' of undefined.

As though it cannot understand what client is?

I'm new to this but it looks like a catch-22: if the script isn't running it cannot instantiate the client, but when the script is ran it gives the error. Where should we start?

Thanks

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