mqtt-gateway | DEPRECATED | Pub Sub library
kandi X-RAY | mqtt-gateway Summary
kandi X-RAY | mqtt-gateway Summary
DEPRECATED. Realtime messaging server for Farmbot (MQTT broker).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate config .
- Check if a topic is allowed
- Authenticate .
- Verifies a given token .
- Make login callback
- Fetches the real JWT .
- helper to authenticate permissions
- The console log function .
- Callback called when the certificate is done
- Determine if key is downloaded
mqtt-gateway Key Features
mqtt-gateway Examples and Code Snippets
Community Discussions
Trending Discussions on mqtt-gateway
QUESTION
I cloned this repo from gitHub so, while installing in the last step I try to run this command:
~/mqtt-gateway$ WEB_API_URL=http://localhost:3000 npm start
And I get this error:
[nodemon] app crashed - waiting for file changes before starting...
I've read that possibly is because of a process that haven't been terminated but I've been unable to solve it.
Hope you can help. Thank you ;)
...ANSWER
Answered 2017-May-16 at 19:48In the error output it said:
Error: listen EADDRINUSE :::1883
The port used for this program is 1883 and I was running mosquitto on that same port so I killed it:
netstat -plten |grep mosquitto
and then
kill -9 PID
like in this question.
Just in case anyone faces a similar problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mqtt-gateway
git clone THIS_REPO
cd THIS_REPO
npm install
Setup and run the Web API locally. We recommend running it on http://localhost:3000
WEB_API_URL=http://localhost:3000 npm start. See note below*.
Websocket MQTT is now available via ws://localhost:3002 and wss://localhost:443. Raw MQTT (TCP connections) are available via mqtt://localhost:1883.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page