MQTT: verschil tussen versies

Uit RevSpace

FooBar (overleg | bijdragen)
Created page with "Revspace currently pushes some MQTT/Moquitto messages to test.mosquitto.org ... In the future these might be pushed to gateway, which will bridge these to test.mosquitto.org. ..."
 
FooBar (overleg | bijdragen)
Geen bewerkingssamenvatting
Regel 4: Regel 4:


Under this namespace we currently send messages for:
Under this namespace we currently send messages for:
- /revspace/sensors/co2  -- The current value on the co2 meter
<ul>
- /revspace/button/skip - skip button for the music
<li>/revspace/sensors/co2  -- The current value on the co2 meter
- /revspace/button/stop - stop button for the music
<li>/revspace/button/skip - skip button for the music
- /revspace/button/shuffle - shuffle-play for the music
<li>/revspace/button/stop - stop button for the music
- /revspace/button/nomz - NOMZ button pressed
<li>/revspace/button/shuffle - shuffle-play for the music
<li>/revspace/button/nomz - NOMZ button pressed
</ul>
 
 
To receive/subscribe to these messages, download mosquitto-clients, or a MQTT library and write your own client.
 
For mosquitto-clients, use:
  mosquitto_sub -h test.mosquitto.org -t "/revspace/#" -v

Versie van 19 apr 2014 22:21

Revspace currently pushes some MQTT/Moquitto messages to test.mosquitto.org ... In the future these might be pushed to gateway, which will bridge these to test.mosquitto.org.

We are currently using the namespace '/revspace/'

Under this namespace we currently send messages for:

  • /revspace/sensors/co2 -- The current value on the co2 meter
  • /revspace/button/skip - skip button for the music
  • /revspace/button/stop - stop button for the music
  • /revspace/button/shuffle - shuffle-play for the music
  • /revspace/button/nomz - NOMZ button pressed


To receive/subscribe to these messages, download mosquitto-clients, or a MQTT library and write your own client.

For mosquitto-clients, use:

 mosquitto_sub -h test.mosquitto.org -t "/revspace/#" -v