https://github.com/albertogeniola/mosquitto-disconnections-plugin
Simple mosquitto plugins that notifies client disconnection events to a given topic
https://github.com/albertogeniola/mosquitto-disconnections-plugin
Last synced: 8 months ago
JSON representation
Simple mosquitto plugins that notifies client disconnection events to a given topic
- Host: GitHub
- URL: https://github.com/albertogeniola/mosquitto-disconnections-plugin
- Owner: albertogeniola
- Created: 2021-04-06T12:56:13.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-06T18:45:15.000Z (about 5 years ago)
- Last Synced: 2025-04-04T12:28:36.636Z (about 1 year ago)
- Language: C
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mosquitto-disconnections-plugin
Simple mosquitto plugins that notifies client disconnection events to a given topic
# Dev env setup
1. Donwload Mosquitto source
```bash
git clone https://github.com/eclipse/mosquitto
```
1. Prepare the plugin directory where to store this plugin source files
```bash
mkdir mosquitto/plugins/disconnections
```
1. Copy the contents of this repo's src folder into mosquitto/plugins/disconnections
```bash
git clone https://github.com/albertogeniola/mosquitto-disconnections-plugin
cp -R mosquitto-disconnections-plugin/src/* mosquitto/plugins/disconnections
```
1. Edit mosquitto/plugins/CMakeLists.txt and add the following line at the end of it
```
# ...
add_subdirectory(disconnections)
```
1. You can now run CMake to generate solution files
```
# ...
cd mosquitto
cmake .
```
__Note__: when bulding on Windows, it is recommended to use CMake-GUI. Just open the mosquitto folder, configure and store Visual Studio solution files into another directory.