Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT BROKER - NO CONNECTION #1

Open
RaulSuquinagua opened this issue Mar 31, 2018 · 1 comment
Open

MQTT BROKER - NO CONNECTION #1

RaulSuquinagua opened this issue Mar 31, 2018 · 1 comment

Comments

@RaulSuquinagua
Copy link

Hi, I have implemented the code with wifi modules esp8266, NODE.JS SERVER in Linux Mint and using "mosquitto" as MQTT BROKER, but I get the following error:

[MESH >>] {"topic":"2483256220/water","payload":"275"}
[ERROR] No MQTT connection

This is the configuration of the "config.js" file:

config.serial = {};
config.serial.port = process.env.MESH_SERIAL_PORT || "/dev/ttyUSB0"; // "/dev/ttyUSB3"
config.serial.baud = process.env.MESH_SERIAL_BAUD || 115200;

config.mqtt = {};
config.mqtt.server = process.env.MESH_MQTT_SERVER_URL || "192.168.1.104:1883";

@latonita
Copy link
Owner

latonita commented Apr 3, 2018

Hi.
Please try to connect to mqtt server using some test tool like mqttspy or mqttlens and then try simple command line:

mosquitto_pub -h 192.168.1.104 -p 1883 -t "hello"  -m "MQTT test"

There is a simple case in my code - if underlying mqtt library can't connect - i show this message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants