MQTT Broker: Difference between revisions
(Created page with "The MQTT Broker is a server that allows publishing and subscribing to MQTT topics. It's meant for sensors and devices at Protospace to communicate publicly and for fun. ===...") |
No edit summary |
||
Line 3: | Line 3: | ||
It's meant for sensors and devices at Protospace to communicate publicly and for fun. | It's meant for sensors and devices at Protospace to communicate publicly and for fun. | ||
=== Theory === | ===Theory=== | ||
MQTT is a lightweight, publish-subscribe network protocol that transports messages between devices<ref>https://en.wikipedia.org/wiki/MQTT</ref>. It's low power and ideal for microcontrollers hooked up to sensors and devices. | MQTT is a lightweight, publish-subscribe network protocol that transports messages between devices<ref>https://en.wikipedia.org/wiki/MQTT</ref>. It's low power and ideal for microcontrollers hooked up to sensors and devices. | ||
Line 14: | Line 14: | ||
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. | ||
=== Access === | ===Access=== | ||
Server / host: webhost.protospace.ca | Server / host: webhost.protospace.ca | ||
==== 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 over the broker. | ||
* username: reader | *username: reader | ||
* password: cf503b99ba8cb0103da8884f09694fcd60ba1f2d | *password: cf503b99ba8cb0103da8884f09694fcd60ba1f2d | ||
==== Writing ==== | ====Writing==== | ||
Ask Tanner for write access to the broker. We want to make sure you don't accidentally screw up sensor data. | Ask Tanner for write access to the broker. We want to make sure you don't accidentally screw up sensor data. | ||
* username: writer | *username: writer | ||
* password: [ask Tanner] | *password: [ask Tanner] | ||
=== Technical Info === | ===Technical Info=== | ||
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 /> |
Revision as of 19:17, 10 August 2021
The MQTT Broker is a server that allows publishing and subscribing to MQTT topics.
It's meant for sensors and devices at Protospace to communicate publicly and for fun.
Theory
MQTT is a lightweight, publish-subscribe network protocol that transports messages between devices[1]. It's low power and ideal for microcontrollers hooked up to sensors and devices.
Messages are just strings of text like "hello world" or "12.3".
Messages are sent to arbitrary topics like /pets/dogs/charlie
. 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.
Topics aren't really created, they just exist as soon as a message is sent to them.
Access
Server / host: webhost.protospace.ca
Reading
Anyone can read any topic. Don't send anything private over the broker.
- username: reader
- password: cf503b99ba8cb0103da8884f09694fcd60ba1f2d
Writing
Ask Tanner for write access to the broker. We want to make sure you don't accidentally screw up sensor data.
- username: writer
- password: [ask Tanner]
Technical Info
The MQTT Broker is hosted on the Webhost VPS managed by Tanner. The same one that's running the main Website and the Wiki.