Skip to content

Johannes4Linux/libmosquitto_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General

This repository contains some examples how to use libmosquitto to create MQTT clients.

Content

  • mqtt_pub.c: A simple MQTT client, who publishes a message under the topic test/t1
  • mqtt_sub.c: A simple MQTT client, who subsribes to a topic and print out a message, everytime it receives a message
  • makefile: to build the examples

Dependencies and usage

To run the script, you need the following packages. Here is the installation command for Debian based systems:

sudo apt install gcc mosquitto mosquitto-clients libmosquitto-dev

More Information

If you want more information about my examples, check out my videos:

About

Some examples about how to use libmosquitto

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published