Skip to content

kknp235/C_MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C_MQTT

Paho_library to publish, subscribe and do both in same client with MQTT

created by @KarthikeyanPrakash ([email protected])

=======================================================================

Source directory

  • <paho_library>/src/..

build directory

  • <paho_library>/build/..

=======================================================================

To build sample programs

Donwload paho.mqtt.c source library in you system

  • To Donwload go to [Github location for paho c library] (https://github.com/eclipse/paho.mqtt.c)
  • Enter the library path in main.scons file at <paho_library>/build/main.scons
  • Go to <paho_library_root>/directory and run scons
  • Built examples can be found in <paho_library>/build/

=======================================================================

Run Sample Programs

  • All the program connectes to test.mosquitto.org by default
  • Publish and Subscribe topic will be displayed while running program (mostly paho_pub, paho_sub)
  • For paho_pub the publish message should be entered in test2.txt file in build directory

=======================================================================

Known Issues:
  1. pub_sub program
  • Publish - Subscribe synchronization
  1. paho_pub
  • Program sometime shows segmentation fault(core dumped)

=======================================================================

About

Paho_library to publish, subscribe and do both in same client with MQTT

Resources

Stars

Watchers

Forks

Packages

No packages published