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

connect() does not authenticate #1

Open
jarkko-hautakorpi opened this issue May 5, 2018 · 0 comments
Open

connect() does not authenticate #1

jarkko-hautakorpi opened this issue May 5, 2018 · 0 comments

Comments

@jarkko-hautakorpi
Copy link

Using the example provided:
$r = new \mqttclient\src\swoole\MqttClient('127.0.0.1', 1883, 10017);
$r->setAuth('username','password');
...
$r->connect();

The 'username' and 'password' are never sent to the MQTT server. With using Wireshark, this can be confirmed. Message payload never has 'username' nor 'password' in it.

Mosquitto then reports on connect:

1525541579: New connection from 127.0.0.1 on port 1883.
1525541579: Socket error on client <unknown>, disconnecting.

Connecting with some other client does work when using same username and password. With Wireshark, username and password can be seen in the payload.

How can you authenticate using username and password?

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

1 participant