• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

apps/H03-May-2022-4,9593,948

client/H03-May-2022-4,7464,003

cmake/H27-Oct-2021-3932

deps/H27-Oct-2021-2,3021,892

examples/H27-Oct-2021-639395

include/H27-Oct-2021-4,510663

installer/H27-Oct-2021-288242

lib/H03-May-2022-12,9409,781

logo/legacy/H03-May-2022-

man/H03-May-2022-17,64217,014

misc/H27-Oct-2021-278171

plugins/H03-May-2022-6,6034,822

security/H27-Oct-2021-2924

service/H27-Oct-2021-6649

snap/H27-Oct-2021-157120

src/H03-May-2022-21,31316,864

test/H27-Oct-2021-42,81432,500

CONTRIBUTING.mdH A D27-Oct-20213.8 KiB9365

MakefileH A D27-Oct-20213.3 KiB135112

NOTICE.mdH A D27-Oct-20211.8 KiB6540

README-compiling.mdH A D27-Oct-20211.1 KiB2621

README-letsencrypt.mdH A D27-Oct-2021939 1814

README.mdH A D27-Oct-20213.7 KiB8958

aclfile.exampleH A D27-Oct-2021230 107

config.hH A D03-May-20222.1 KiB9166

config.mkH A D03-May-202210.5 KiB390234

edl-v10H A D27-Oct-20211.5 KiB3223

epl-v20H A D27-Oct-202113.9 KiB278228

libmosquitto.pc.inH A D27-Oct-2021246 119

libmosquittopp.pc.inH A D27-Oct-2021252 119

mosquitto.confH A D03-May-202239.3 KiB9023

pskfile.exampleH A D27-Oct-202123 32

pwfile.exampleH A D27-Oct-2021355 43

README-compiling.md

1The following packages can be used to add features to mosquitto. All of them
2are optional.
3
4* openssl
5* c-ares (for DNS-SRV support, disabled by default)
6* tcp-wrappers (optional, package name libwrap0-dev)
7* libwebsockets (optional, disabled by default, version 2.4 and above)
8* cJSON (optional but recommended, for dynamic-security plugin support, and
9  JSON output from mosquitto_sub/mosquitto_rr)
10* libsystemd-dev (optional, if building with systemd support on Linux)
11* On Windows, a pthreads library is required if threading support is to be
12  included.
13* xsltproc (only if building from git)
14* docbook-xsl (only if building from git)
15
16To compile, run "make", but also see the file config.mk for more details on the
17various options that can be compiled in.
18
19Where possible use the Makefiles to compile. This is particularly relevant for
20the client libraries as symbol information will be included.  Use cmake to
21compile on Windows or Mac.
22
23If you have any questions, problems or suggestions (particularly related to
24installing on a more unusual device) then please get in touch using the details
25in README.md.
26

README-letsencrypt.md

1# Using Lets Encrypt with Mosquitto
2
3On Unix like operating systems, Mosquitto will attempt to drop root access as
4soon as it has loaded its configuration file, but before it has activated any
5of that configuration. This means that if you are using Lets Encrypt TLS
6certificates, it will be unable to access the certificates and private keys
7typically located in /etc/letsencrypt/live/
8
9To help with this problem there is an example `deploy` renewal hook script in
10`misc/letsencrypt/mosquitto-copy.sh` which shows how the certificate and
11private key for a mosquitto broker can be copied to /etc/mosquitto/certs/ and
12given the correct ownership and permissions so the broker can access them, but
13no other user can. It then signals Mosquitto to reload the certificates.
14
15Use of this script allows you to happily use Lets Encrypt certificates with
16Mosquitto without needing root access for Mosquitto, and without having to
17restart Mosquitto.
18

README.md

1Eclipse Mosquitto
2=================
3
4Mosquitto is an open source implementation of a server for version 5.0, 3.1.1,
5and 3.1 of the MQTT protocol. It also includes a C and C++ client library, and
6the `mosquitto_pub` and `mosquitto_sub` utilities for publishing and
7subscribing.
8
9## Links
10
11See the following links for more information on MQTT:
12
13- Community page: <http://mqtt.org/>
14- MQTT v3.1.1 standard: <https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html>
15- MQTT v5.0 standard: <https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html>
16
17Mosquitto project information is available at the following locations:
18
19- Main homepage: <https://mosquitto.org/>
20- Find existing bugs or submit a new bug: <https://github.com/eclipse/mosquitto/issues>
21- Source code repository: <https://github.com/eclipse/mosquitto>
22
23There is also a public test server available at <https://test.mosquitto.org/>
24
25## Installing
26
27See <https://mosquitto.org/download/> for details on installing binaries for
28various platforms.
29
30## Quick start
31
32If you have installed a binary package the broker should have been started
33automatically. If not, it can be started with a basic configuration:
34
35    mosquitto
36
37Then use `mosquitto_sub` to subscribe to a topic:
38
39    mosquitto_sub -t 'test/topic' -v
40
41And to publish a message:
42
43    mosquitto_pub -t 'test/topic' -m 'hello world'
44
45## Documentation
46
47Documentation for the broker, clients and client library API can be found in
48the man pages, which are available online at <https://mosquitto.org/man/>. There
49are also pages with an introduction to the features of MQTT, the
50`mosquitto_passwd` utility for dealing with username/passwords, and a
51description of the configuration file options available for the broker.
52
53Detailed client library API documentation can be found at <https://mosquitto.org/api/>
54
55## Building from source
56
57To build from source the recommended route for end users is to download the
58archive from <https://mosquitto.org/download/>.
59
60On Windows and Mac, use `cmake` to build. On other platforms, just run `make`
61to build. For Windows, see also `README-windows.md`.
62
63If you are building from the git repository then the documentation will not
64already be built. Use `make binary` to skip building the man pages, or install
65`docbook-xsl` on Debian/Ubuntu systems.
66
67### Build Dependencies
68
69* c-ares (libc-ares-dev on Debian based systems) - only when compiled with `make WITH_SRV=yes`
70* cJSON - for client JSON output support. Disable with `make WITH_CJSON=no` Auto detected with CMake.
71* libwebsockets (libwebsockets-dev) - enable with `make WITH_WEBSOCKETS=yes`
72* openssl (libssl-dev on Debian based systems) - disable with `make WITH_TLS=no`
73* pthreads - for client library thread support. This is required to support the
74  `mosquitto_loop_start()` and `mosquitto_loop_stop()` functions. If compiled
75  without pthread support, the library isn't guaranteed to be thread safe.
76* uthash / utlist - bundled versions of these headers are provided, disable their use with `make WITH_BUNDLED_DEPS=no`
77* xsltproc (xsltproc and docbook-xsl on Debian based systems) - only needed when building from git sources - disable with `make WITH_DOCS=no`
78
79Equivalent options for enabling/disabling features are available when using the CMake build.
80
81
82## Credits
83
84Mosquitto was written by Roger Light <roger@atchoo.org>
85
86Master: [![Travis Build Status (master)](https://travis-ci.org/eclipse/mosquitto.svg?branch=master)](https://travis-ci.org/eclipse/mosquitto)
87Develop: [![Travis Build Status (develop)](https://travis-ci.org/eclipse/mosquitto.svg?branch=develop)](https://travis-ci.org/eclipse/mosquitto)
88Fixes: [![Travis Build Status (fixes)](https://travis-ci.org/eclipse/mosquitto.svg?branch=fixes)](https://travis-ci.org/eclipse/mosquitto)
89