An open API service indexing awesome lists of open source software.

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

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
```