Skip to content

PR-DC/PRDC_MQTT_NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PR-DC MQTT Node.js

Example of MQTT Broker and Client implemented in Node.js.

For MQTT Web Client checkout https://github.com/PR-DC/PRDC_MQTTWebClient

Requirements

Node.js

This code is tested with Node.js 16.1.0

Installation

On Windows from scripts\win10\ first run installNodejs.sh and then installApp.cmd, for both Broker and Client.

On Linux from scripts\linux\ first run installNVM.sh then installNodejs.sh and finally runApp.sh, for both Broker and Client.

Results

After running both Broker and Client you should get two windows similar to the following.

License

Copyright (C) 2021 PR-DC info@pr-dc.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details.

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