esp8266-anemometer
esp8266-anemometer copied to clipboard
How to provide mqtt username and password ?
I am not able to find mqtt username and password field. Kindly please update.
You need to change line
if (client.connect(mqtt_id)) {
in:
if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {
Also, you need to add following row at the end of myconfig.h file:
const char* mqtt_password = "your_mqtt_password_here";
Hello, good evening. what about user name of mqtt is the same as the password? could you please help me? Thank you very much
You need to change line
if (client.connect(mqtt_id)) {
in:if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {
Also, you need to add following row at the end of myconfig.h file:
const char* mqtt_password = "your_mqtt_password_here";
Hi, the problem even putting the password remains. The error that is generated is (Socket error on client
You need to change line
if (client.connect(mqtt_id)) {
in:if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {
Also, you need to add following row at the end of myconfig.h file:const char* mqtt_password = "your_mqtt_password_here";
Hi, the problem even putting the password remains. The error that is generated is (Socket error on client , disconnecting) I also tried to add the field user but without success. can you help me? thank you
Resolved. Thanks to the great Luigi Duchi now it works. Best regards!
You need to change line
if (client.connect(mqtt_id)) {
in:if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {
Also, you need to add following row at the end of myconfig.h file:const char* mqtt_password = "your_mqtt_password_here";
Hi, the problem even putting the password remains. The error that is generated is (Socket error on client , disconnecting) I also tried to add the field user but without success. can you help me? thank you
Resolved. Thanks to the great Luigi Duchi now it works. Best regards!
Thaks i have the solution... btw. brainfreez ;) mqtt_host, mqtt_id, mqtt_password mqtt_host= ip mqtt_id= username mqtt_password = password