Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leo-nerd opened this issue Mar 21, 2020 · 2 comments
Open

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

leo-nerd opened this issue Mar 21, 2020 · 2 comments

Comments

@leo-nerd
Copy link

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

@leo-nerd
Copy link
Author

(if I comment out the publish method first, then run the script, then connect, then uncomment the publish method, then we're good)

@julianrubisch
Copy link
Member

Sorry for the difficulties. I will have a look when I find the time (not easy atm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants