https://github.com/medilies/mqttjs-client-example
https://github.com/medilies/mqttjs-client-example
client logging mqtt mqttjs template
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/medilies/mqttjs-client-example
- Owner: medilies
- License: mit
- Created: 2022-10-16T20:12:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-19T19:22:02.000Z (over 3 years ago)
- Last Synced: 2025-01-24T10:47:36.846Z (over 1 year ago)
- Topics: client, logging, mqtt, mqttjs, template
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTT.JS client example
## Setup
```bash
git clone https://github.com/medilies/mqttjs-client-example
```
```bash
cd mqttjs-client-example
```
```bash
npm install
```
```bash
cp .env.example .env
```
- Edit `.env`.
- Edit `sub_topics.json`.
## Usage
Start a broker. For example:
```bash
mosquitto -p 1883 -v
```
Start the client:
```bash
npm start
```