Setting up HiveMQ
18 November 2020 at 10:34 pm
This autumn, I’ve been really busy getting another round of students through Embedded Systems and Machine to Machine Communications (M2M) at Kristiania University. As part of the course, we use MQTT quite a bit but it’s a constant annoyance that you have to build Mosquitto from source just to get Websockets to work. This year I tested the community edition of HiveMQ and it actually works really well.
I’m kind of kicking myself for not using it earlier, but there’s very little info out there about how good a solution this really is. So - I made a video tutorial on how to set up HiveMQ on a DigitalOcean droplet. Takes just a little more than 30 minutes and it’s a fully featured MQTT broker that is free and Open Source. Go grab it here and follow along the tutorial?
Yeah. I know. I edited the start a bit too much, but this was put together really quickly 😉
Official installation instructions: https://github.com/hivemq/hivemq-community-edition/wiki/Installing-HiveMQ#installation-on-unix-based-systems-linux-bsd-macos-x-unix
Setting up Websocket listeners: https://github.com/hivemq/hivemq-community-edition/wiki/Listener-configuration
Online client for testing your installation: http://www.hivemq.com/demos/websocket-client/
Role based Access Control Extension: https://www.hivemq.com/extension/file-rbac-extension/