You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mosquitto/plugins
Roger A. Light c17c6a9028 Move example plugins to their own directory. 5 years ago
..
dynamic-security Fix SPDX identifiers: EDL-1.0 -> BSD-3-Clause. 5 years ago
examples Move example plugins to their own directory. 5 years ago
CMakeLists.txt Move example plugins to their own directory. 5 years ago
Makefile Move example plugins to their own directory. 5 years ago
README.md Move example plugins to their own directory. 5 years ago

README.md

Plugins

This directory contains plugins for use with Mosquitto.

Dynamic security

This is a fully functioning plugin that implements authentication and access control, with configuration via a $CONTROL topic. See the readme in dynamic-security for more information.

Examples / Add properties

This is an example plugin that demonstrates adding MQTT v5 properties to messages, and how to get client information.

Examples / Authenticate by IP address

This is an example plugin that demonstrates a basic authentication callback that allows clients based on their IP address. Password based authentication is preferred over this very simple type of access control.

Examples / Client properties

This is an example plugin that demonstrates some of the functions for retrieving client information such as client id and username.

Examples / Connection state

This is an example plugin to demonstrate the use of the connect and disconnect events. It publishes messages to $SYS/broker/connection/client//state for every client that connects to the broker, to indicate the connection state of that client.

Examples / Message timestamp

This is an example plugin to demonstrate how it is possible to attach MQTT v5 properties to messages after they have been received, and before they are sent on to subscribers.

This plugin attaches a user-property property to each message which contains the ISO-8601 timestamp of the time the message was received by the broker. This means it is possible for MQTT v5 clients to see how old a retained message is, for example.

Examples / Payload modification

This is an example plugin to demonstrate how it is possible to modify the payload of messages after they have been received, and before they are sent on to subscribers.

If you are considering using this feature, you should be very certain you have verified the payload is the correct format before modifying it.

This plugin adds the text string "hello " to the beginning of each payload, so with anything other than simple plain text messages it will corrupt the payload contents.