https://github.com/threeal/mosquitto_example
MQTT publisher and subscriber example using Eclipse Mosquitto
https://github.com/threeal/mosquitto_example
c cpp mosquitto mqtt
Last synced: 3 months ago
JSON representation
MQTT publisher and subscriber example using Eclipse Mosquitto
- Host: GitHub
- URL: https://github.com/threeal/mosquitto_example
- Owner: threeal
- License: mit
- Created: 2020-12-01T16:04:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T08:38:23.000Z (over 5 years ago)
- Last Synced: 2025-05-07T04:38:11.138Z (about 1 year ago)
- Topics: c, cpp, mosquitto, mqtt
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mosquitto Example
[MQTT](https://mqtt.org/) publisher and subscriber example using [Eclipse Mosquitto](https://mosquitto.org/)
## Quick Start
- Install Eclipse Mosquitto [here](https://mosquitto.org/download/).
- Build from the source code.
```bash
$ mkdir -p build && cd build
$ cmake ..
$ make
```
- Run any of the publishers and subscriber on different terminal.
```bash
$ ./temperature_publisher
# or
$ ./people_count_publisher
# or
$ ./fan_speed_publisher
```
```bash
$ ./subscriber
```