Mosquitto - SamuelLarkin/poulailler.IoT GitHub Wiki

Mosquitto

Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers.

The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers.

The Mosquitto project also provides a C library for implementing MQTT clients, and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients.

Mosquitto is part of the Eclipse Foundation, is an iot.eclipse.org project and is sponsored by cedalo.com.

mosquitto -v

1579231786: mosquitto version 1.5.7 starting
1579231786: Using default config.
1579231786: Opening ipv4 listen socket on port 1883.
1579231786: Error: Address already in use
mosquitto_sub -t '#' -v
poulailler/temperature 18.20
poulailler/humidite 24.10
mosquitto_sub -t '#' -v -d
Client mosqsub|6076-raspberryp sending CONNECT
Client mosqsub|6076-raspberryp received CONNACK (0)
Client mosqsub|6076-raspberryp sending SUBSCRIBE (Mid: 1, Topic: #, QoS: 0)
Client mosqsub|6076-raspberryp received SUBACK
Subscribed (mid: 1): 0
Client mosqsub|6076-raspberryp received PUBLISH (d0, q0, r0, m0, 'poulailler/temperature', ... (5 bytes))
poulailler/temperature 18.50
Client mosqsub|6076-raspberryp received PUBLISH (d0, q0, r0, m0, 'poulailler/humidite', ... (5 bytes))
poulailler/humidite 24.70
Client mosqsub|6076-raspberryp received PUBLISH (d0, q0, r0, m0, 'poulailler/temperature', ... (5 bytes))
poulailler/temperature 18.50
Client mosqsub|6076-raspberryp received PUBLISH (d0, q0, r0, m0, 'poulailler/humidite', ... (5 bytes))
poulailler/humidite 24.90