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

How to use emitter with a standard MQTT client ? #59

Closed
fungiboletus opened this issue Dec 6, 2017 · 4 comments
Closed

How to use emitter with a standard MQTT client ? #59

fungiboletus opened this issue Dec 6, 2017 · 4 comments
Labels

Comments

@fungiboletus
Copy link

Hei, is it possible to use emitter with a standard MQTT client ?

@kelindar
Copy link
Contributor

kelindar commented Dec 6, 2017

@yellowiscool have a look here: https://emitter.io/develop/creating-sdk

@fungiboletus
Copy link
Author

Thanks. Am I doing it correctly ?

I go to /keygen and I generate a key for the channel bonjour. I get

{
  "status": 200,
  "key": "24XZPg40wydam70RCxbahLNXAW1zZnp-",
  "channel": "bonjour"
}

I subscribe to 24XZPg40wydam70RCxbahLNXAW1zZnp-/bonjour

I publish to 24XZPg40wydam70RCxbahLNXAW1zZnp-/bonjour

This doesn't work using MQTT-Spy and MQTT.fx

@kelindar
Copy link
Contributor

kelindar commented Dec 6, 2017

Does it work if you add a trailing slash at the end?24XZPg40wydam70RCxbahLNXAW1zZnp-/bonjour/ We have a strict parser.

@fungiboletus
Copy link
Author

Ok it works.

But it also looks like the topic in the received messages is bonjour/ and not 24XZPg40wydam70RCxbahLNXAW1zZnp-/bonjour/. So MQTT.fx doesn't display the messages in the 24XZPg40wydam70RCxbahLNXAW1zZnp-/bonjour/ subscription panel.

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

No branches or pull requests

2 participants