a simple mqtt client with example in main.cpp based on libmosquittopp
First you need to install all required dependencies.
You can do this with sudo apt-get install cmake libmosquittopp-dev build-essential
on Debian or Ubuntu.
Then, all you have to do is create a new folder with mkdir build
in the current project folder, change to this folder with cd build
and create a makefile
with cmake ..
.
Then you can create the executables by simply typing make
One example is provided with this library: Link to source code
Check out my other projects, for example
- led strip control via a website and Raspberry Pi, ESP8266 or ESP32
- a program to display the balance of your crypto currencies and the value of your tokens in Euros or Dollars
If you want to add more examples or improve the library, just create a pull request with proper commit message.
If this project helps you, you can give me a cup of coffee :)
-
Bitcoin
1LFRHmdxpNNu9N544nAnPZ4VovrEuLUG8M -
Ethereum
0x728ec1a37551E55e6127a34eE88E36Ca1BfB6f46 -
Monero
4APzJpJh4z7RpxwYSfN1rYWeUYWvqRZjA2VDAmvm52quXtMr3XcdcZNSwinRBFQ2MZRBdUhSCiGgfPUv7WUpBmVT3a1zYA3