bms-mqtt-worker-cli

command module
v0.0.0-...-4e1b064 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 2 Imported by: 0

README

BMS MQTT Client

Project Screenshot

bms-mqtt-client is a Golang program for running a MQTT client and subscribing to a specific topic.

Prerequisites

  • Go version: >1.23.4
    go version
    
    If your version is older, upgrade Go.

Installation

Use the go mod tidy command to download and install all required dependencies:

go mod tidy

This will:

  • Download missing dependencies.
  • Remove unused dependencies.

Usage

If it is your first time running the program, run the following command to create the necessary config files in ./config. (There are two example files provided.)

go run cmd/app/main.go --init

This is where you will set all the parameters for the program.

After that, you can run the program normally with

go run cmd/app/main.go

Below is a list of arguments that can be used while starting the program:

  • --v: Provides the version details of the program.
  • --d: Runs the program in debug mode.
  • --e: Used to set the environment. ("p" for production and "d" for development)
  • --help: Supplies help for the available arguments.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Documentation

Overview

Copyright © 2025 Johandré van Deventer <johandre.vandeventer@rubiconsa.com>

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL