Code Monkey home page Code Monkey logo

ncmqtt's Introduction

ncmqtt

ncmqtt is a command-line tool for sharing data over MQTT.

Authors

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Disclaimer

This code is made available on the understanding that it will not be used in safety-critical situations without a full and competent review.

Requirements

Building

To build the ncmqtt project, follow these steps:

  1. Clone the repository:

    git clone <repository_URL>
    cd ncmqtt
  2. Set the Path to Paho MQTT Library:

    • You can set the path to the Paho MQTT library using the PAHO_MQTT_DIR variable when configuring the project with CMake.
    • If PAHO_MQTT_DIR is not set, CMake will attempt to find the Paho MQTT library using the find_package command.

Build the Project

A. Build with PAHO_MQTT_DIR set:

  1. Create and navigate to the build directory:
    mkdir build
    cd build
  2. Run cmake with the PAHO_MQTT_DIR set to the path of your Paho MQTT C library:
    cmake -DPAHO_MQTT_DIR=/path/to/paho.mqtt.c ..
  3. Build the project:
    make

B. Build without PAHO_MQTT_DIR set:

  1. Create and navigate to the build directory:
    mkdir build
    cd build
  2. Run cmake without setting the PAHO_MQTT_DIR:
    cmake ..
  3. Build the project:
    make

Usage

The ncmqtt command supports various options to configure its behavior:

Usage: ncmqtt [<options>]
 -h : show this help message
 -v : show version
 -T : topic for sharing messages: default = nc_channel_pub
 -l : enable listening to incoming messages
 -S : set server host : default = test.mosquitto.org
 -P : set server port : default = 1883
 -A : set server auth = user,pwd

ncmqtt's People

Contributors

manux81 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.