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 issue #13

Open
mattsauce opened this issue Aug 2, 2016 · 1 comment
Open

MQTT issue #13

mattsauce opened this issue Aug 2, 2016 · 1 comment

Comments

@mattsauce
Copy link

I have connected to the MQTT server but my device events dont get broadcasted. I also clone your project: https://github.com/dpjanes/iotdb-transport-mqtt to receive the event and change the code to my prefix but nothing is coming out. The API part works well.

@dpjanes
Copy link
Owner

dpjanes commented Aug 3, 2016

Interesting - I'm definitely seeing some messages:

$ mqtt subscribe --hostname mqtt.iotdb.org --topic 'u/#' --verbose
u/p7bce7a7f23007711d3d0196c623bcd2d/st/motion/7a3ee691-1099-41fe-9625-489ec114e7d5 {"motion": true, "timestamp": "2016-08-03T11:59:53.117Z"}
u/p7bce7a7f23007711d3d0196c623bcd2d/st/switch/8f6105ef-1f69-42fb-81c0-b1cc902f74cd {"timestamp": "2016-08-03T11:59:53.916Z", "switch": true}
u/p7bce7a7f23007711d3d0196c623bcd2d/st/switch/8f6105ef-1f69-42fb-81c0-b1cc902f74cd {"timestamp": "2016-08-03T11:59:53.916Z", "switch": true}
u/mikemahon/st/temperature/8427a9e8-44ce-45eb-b727-bde349127ba5 {"timestamp": "2016-08-03T12:00:02.066Z", "temperature": 71}
u/p7bce7a7f23007711d3d0196c623bcd2d/st/motion/7a3ee691-1099-41fe-9625-489ec114e7d5 {"motion": false, "timestamp": "2016-08-03T12:00:05.863Z"}
u/joedix/st/motion/ef906f1f-7edc-45c9-ad03-bda6ac4a3298 {"motion": false, "timestamp": "2016-08-03T12:00:26.001Z"}
u/p7bce7a7f23007711d3d0196c623bcd2d/st/motion/7a3ee691-1099-41fe-9625-489ec114e7d5 {"motion": true, "timestamp": "2016-08-03T12:00:44.228Z"}
u/p7bce7a7f23007711d3d0196c623bcd2d/st/motion/7a3ee691-1099-41fe-9625-489ec114e7d5 {"motion": false, "timestamp": "2016-08-03T12:00:55.453Z"}

Is it possible there's an error with the token you're using?

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