What is MQTT?
MQTT is a light-weight Machine-2-Machine (M2M) messaging protocol based on the “publish-subscribe” architecture.
Usign Tech Ministry’s MQTT server.
MQTT servers are generally called brokers. In order to connect to Tech Ministry’s MQTT broker a member needs:
- An MQTT client
- A set of credentials (username, password)
- The CA’s public key (since the communication is encrypted)
Obtaining credentials and CA’s public key
- For the time being in order for someone to obtain a set of credentials, he has to request the from a member of the MQTT working group.
- The CA’s public key can be obtain here.
- Any MQTT client using MQTT protocol version 3.1.1 can be used.
- Broker’s hostname and port can be obtain here
Tested MQTT clients:
- Mosquitto (Linux distros/ MacOS / Windows / FreeBSD / OpenWRT )
- MQTT Client (Android)
- ruby-mqtt (ruby gem)
Note: When implementing an MQTT client don’t forget to catch disconnects and try to reconnect automatically.
Each user can publish/subscribe to all topics under the member/userName topic.