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

paho not defined #55

Open
LianAarts opened this issue Nov 18, 2021 · 2 comments
Open

paho not defined #55

LianAarts opened this issue Nov 18, 2021 · 2 comments

Comments

@LianAarts
Copy link

Paho not defined error when using connect function. The error message points to cordova-plugin-mqtt.js at line 110 "client = new Paho.MQTT.Client(args.url.split("tcp://")[1], Number(args.wsPort), args.urlPath||"/ws", args.clientId);".

Is this a known error? Am I doing something wrong?

Thanks in advance!

@gkzsolt
Copy link

gkzsolt commented Dec 18, 2021

Same here (trying on electron). I am quite disappointed, since the project seems abandoned, and I need to look for another MQTT solution (for Android and Electron). I used this plugin a few years ago, and as I remember it worked.
It's not clear if it'll work on Android (the Paho.MQTT.Client reference is in the 'other platforms' branch), but I need a general solution. It is also very convenient to debug on Electron.

@gkzsolt
Copy link

gkzsolt commented Dec 19, 2021

The Eclipse Paho JavaScript client is a very good MQTT JS library that uses WebSockets to connect to an MQTT Broker. The GitHub code contains a utility app which can be used to test it. It works beautifully :) I tested it and succeeded to integrate it in my Cordova application.

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