Skip to main content



      Home
Home » Eclipse Projects » Mosquitto » Mosquitto plugins written in rust, help with contents of mosquitto struct(Some information about how to write plugins in rust, for mosquitto broker)
Mosquitto plugins written in rust, help with contents of mosquitto struct [message #1835452] Thu, 03 December 2020 11:19 Go to next message
Eclipse UserFriend
Mosquitto broker is a mature and simple, and quite frankly defactor standard MQTT broker in use today.

However I do not enjoy writing stuff in C to much, so I created a library that will help aspiring plugin writers to write their plugin in rust, and use it in Mosquitto broker. Will post links in next message

Repository with example: https://github.com/TotalKrill/mosquitto_plugin

I have included an example plugin that only let clients connect if their password is their username in reverse, and also only allows subscribtion/publish depending on their mosquitto.conf file. You will find it in the repository.

I would however want some help, the mosquitto_plugin.h header file doesnt specify the mosquitto struct. So I have not been able to incorporate information from that struct into my plugin library yet.

Any help is appreciated!

[Updated on: Thu, 03 December 2020 12:21] by Moderator

Re: Mosquitto plugins written in rust, help with contents of mosquitto struct [message #1835455 is a reply to message #1835452] Thu, 03 December 2020 12:20 Go to previous messageGo to next message
Eclipse UserFriend
And to the crates site:
https://crates.io/crates/mosquitto-plugin

[Updated on: Thu, 03 December 2020 12:21] by Moderator

Re: Mosquitto plugins written in rust, help with contents of mosquitto struct [message #1835457 is a reply to message #1835455] Thu, 03 December 2020 13:16 Go to previous message
Eclipse UserFriend
Great, good work!

`struct mosquitto` is private, and will remain so forever. You can use the accessor functions in `mosquitto_broker.h` to get access to some parameters, are there any other parameters that you are missing?
Previous Topic:What kinf of IPC is Mosquitto broker using?
Next Topic:Mosquitto and TCP session
Goto Forum:
  


Current Time: Wed Jul 16 16:26:15 EDT 2025

Powered by FUDForum. Page generated in 0.04851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top