MQTT Broker: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 8: Line 8:
Messages are just strings of text like "hello world" or "12.3".
Messages are just strings of text like "hello world" or "12.3".


Messages are sent to arbitrary topics like <code>/pets/dogs/charlie</code>. By convention slashes separate levels of category that we all agree on.
Messages are sent to arbitrary topics like <code>pets/dogs/charlie</code>. By convention slashes separate levels of category that we all agree on.


When a message is sent to a topic, all devices that are subscribed to that topic receive the message.
When a message is sent to a topic, all devices that are subscribed to that topic receive the message.


Topics aren't really created, they just exist as soon as a message is sent to them.
Topics aren't really created, they just exist as soon as a message is sent to them.
Normally messages aren't stored anywhere. They just get sent out and received by whoever happens to be listening to the same topic. However, we automatically log messages to the <code>sensors/</code> topics using [https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mqtt_consumer Telegraf] + [https://github.com/influxdata/influxdb#influxdb- InfluxDB].


===Access===
===Access===
Line 18: Line 20:


====Reading====
====Reading====
Anyone can read any topic. Don't send anything private over the broker.
Anyone can read any topic. Don't send anything private to the broker.


*username: reader
*username: reader
Line 32: Line 34:
The MQTT Broker is hosted on the [[Webhost VPS]] managed by Tanner. The same one that's running the main [[Website]] and the [[Wiki]].
The MQTT Broker is hosted on the [[Webhost VPS]] managed by Tanner. The same one that's running the main [[Website]] and the [[Wiki]].


=== References ===
===References===
<references />
<references />

Navigation menu