I cannot connect to my mqtt with version 1,5 (1.4 connected but I did not have any luck connecting to my weather station)
My device is a LilyGO 433Mhz model: T3 V1.6.1
It does say “wifi Connected” on the led screen then the OPenMQTTgateway comes up in black.
Blockquote
************* WELCOME TO OpenMQTTGateway **************
N: SSD1306 config initialised
[ 137][E][Preferences.cpp:483] getString(): nvs_get_str len fail: SSD1306Config NOT_FOUND
N: No SSD1306 config to load
N: Setup SSD1306 Display end
N: OpenMQTTGateway Version: v1.5.0
{
“mqtt_server”: “10.1.1.77”,
“mqtt_port”: “1883”,
“mqtt_user”: “”,
“mqtt_pass”: “”,
“mqtt_topic”: “home/”,
“gateway_name”: “OpenMQTTGateway_lilygo_rtl_433_ESP”,
“mqtt_broker_secure”: false,
“mqtt_broker_cert”: “”,
“mqtt_ss_index”: 0,
“ota_server_cert”: “”,
“ota_pass”: “”
}*wm:[2] Added Parameter: server
*wm:[2] Added Parameter: port
*wm:[2] Added Parameter: user
*wm:[2] Added Parameter: pass
*wm:[2] Added Parameter: secure
*wm:[2] Added Parameter: cert
*wm:[2] Added Parameter: name
*wm:[2] Added Parameter: topic
*wm:[2] Added Parameter: ota
N: Attempting Wifi connection with saved AP: 0
N: ZgatewayRTL_433 setup done
N: Switching to RTL_433 Receiver: 433.92Mhz
N: OpenMQTTGateway modules: [“LilyGo_SSD1306”,“rtl_433”]
N: ************** Setup OpenMQTTGateway end **************
W: MQTT connection…
W: failure_number_mqtt: 1
W: failed, rc=2
W: MQTT connection…
W: failure_number_mqtt: 2
W: failed, rc=2
W: MQTT connection…
W: failure_number_mqtt: 3
W: failed, rc=2
W: MQTT connection…
W: failure_number_mqtt: 4
Any ideas…
Tom
Can I get a copy of 1.4 which at least connected to MQTT. Also is their anything I can do to test what is at error now.
Thanks in advance
Tom
Hello Tom,
Sorry to hear that, could you do an erase from the web portal below:
https://espressif.github.io/esptool-js/
And reflash the 1.5.0
Thanks for that.
I did an erase as requested, but still have same result with no MQTT connection.
Here are the logs…
************ WELCOME TO OpenMQTTGateway **************
N: SSD1306 config initialised
[ 136][E][Preferences.cpp:483] getString(): nvs_get_str len fail: SSD1306Config NOT_FOUND
N: No SSD1306 config to load
N: Setup SSD1306 Display end
N: OpenMQTTGateway Version: v1.5.0
{
“mqtt_server”: “10.1.1.77”,
“mqtt_port”: “1883”,
“mqtt_user”: “”,
“mqtt_pass”: “”,
“mqtt_topic”: “home/”,
“gateway_name”: “OpenMQTTGateway_lilygo_rtl_433_ESP”,
“mqtt_broker_secure”: false,
“mqtt_broker_cert”: “”,
“mqtt_ss_index”: 0,
“ota_server_cert”: “”,
“ota_pass”: “”
}*wm:[2] Added Parameter: server
*wm:[2] Added Parameter: port
*wm:[2] Added Parameter: user
*wm:[2] Added Parameter: pass
*wm:[2] Added Parameter: secure
*wm:[2] Added Parameter: cert
*wm:[2] Added Parameter: name
*wm:[2] Added Parameter: topic
*wm:[2] Added Parameter: ota
N: Attempting Wifi connection with saved AP: 0
N: ZgatewayRTL_433 setup done
N: Switching to RTL_433 Receiver: 433.92Mhz
N: OpenMQTTGateway modules: [“LilyGo_SSD1306”,“rtl_433”]
N: ************** Setup OpenMQTTGateway end **************
W: MQTT connection…
W: failure_number_mqtt: 1
W: failed, rc=2
W: MQTT connection…
W: failure_number_mqtt: 2
W: failed, rc=2
Tom
Hello,
After the erase and the reupload, did you had to reenter the credentials in the wifi portal?
I did the erase and started from scratch. It did the usual and asked for wifi etc. Then rebooted.
With my MQTT broker I still did not get a response. (which I did with 1.4).
I am NOT using Home Assistant (will soon) but a Delphi program which I wrote which has an MQTT broker and client. This works well with all my MQTT clients.
So what I will do next is setup Home Assistant and a MQTT broker installed.
Will keep you posted.
Tom
1 Like
With home assistant and MQTT broker it now works.
All I need to get up and going is my Ambient Weather WS-2902 station.
Tom
1 Like
On your Delphi was the prefix also home/ or something different?
I had problems once on HA and homeassistant/ worked for me but I may have had a config error somewhere that prevented the home/
Hi @Tom_Duncan , I have exactly the same board and exactly the same problem
it was working with 1.4, but it doesn’t work with 1.5
Did you manage to rollback to 1.4?
No, sorry about that. Just hoping that someone can get it working for us.
tdxxl
June 9, 2023, 11:13am
11
Hey, I have exactly the same issue when connecting to mosquitto broker .
Other ESP32s running ESPHome and ESPresense can connect just fine…
Do you use a username and password with your broker ?
tdxxl
June 12, 2023, 6:15am
13
Never mind, I’ve just updated to the newly released version 1.6 of OpenMQTTGateway and the issue is gone!
1 Like
I have gone to 1.6 as well. All is good.
However I have nothing from my FineOffset weather station.
jhreise
November 7, 2024, 11:07pm
15
Hello, I’m new here.
I have the same problem. mqtt runs on various devices for me. but the lilygo does not connect to mqtt. Maybe someone has a tip for me. Thanks Jürg