No MQTT connection in Olimex ESP32-PoE board

Hello everyone.
I have programmed an Olimex ESP32-PoE board with the esp32-olimex-gtw-ble-wifi FW, I have configured the WiFi and MQTT credentials with WifiManager, but the MQTT connection fails.
I also enabled port 1883 in my router for the mqtt server IP address, but I can’t even ping the IP address.
This is what I see at the start-up

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13160
load:0x40080400,len:3036
entry 0x400805e4
N:
************* WELCOME TO OpenMQTTGateway **************
N: OpenMQTTGateway Version: v0.9.15
{
“mqtt_server”: “192.168.2.192”,
“mqtt_port”: “1883”,
“mqtt_user”: “”,
“mqtt_pass”: “”,
“mqtt_topic”: “home/”,
“gateway_name”: “OpenMQTTGateway_ESP32_OLM_GTWW”,
“mqtt_broker_secure”: false,
“mqtt_broker_cert”: “”,
“mqtt_ss_index”: 0,
“ota_server_cert”: “”
}*WM: [1] Free heap: 151988
*WM: [1] ESP-IDF version: v3.3.5-1-g85c43024c
*WM: [3] allocating params bytes: 20
*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: [3] Updated _max_params: 10
*WM: [3] re-allocating params bytes: 40
*WM: [2] Added Parameter: cert
*WM: [2] Added Parameter: name
*WM: [2] Added Parameter: topic
N: Attempting Wifi connection with saved AP: 0
N: Attempting Wifi connection with saved AP: 1
E (948) wifi:sta is connecting, return error
[E][WiFiSTA.cpp:221] begin(): connect failed!
N: Attempting Wifi connection with saved AP: 2
E (1450) wifi:sta is connecting, return error
[E][WiFiSTA.cpp:221] begin(): connect failed!
N: Attempting Wifi connection with saved AP: 3
E (1952) wifi:sta is connecting, return error
[E][WiFiSTA.cpp:221] begin(): connect failed!
N: Attempting Wifi connection with saved AP: 4
E (2454) wifi:sta is connecting, return error
[E][WiFiSTA.cpp:221] begin(): connect failed!
N: Connect your phone to WIFI AP: OpenMQTTGateway_ESP32_OLM_GTWW with PWD: your_password
*WM: [1] AutoConnect
*WM: [2] ESP32 event handler enabled
*WM: [1] AutoConnect: ESP Already Connected
*WM: [1] STA static IP:
*WM: [2] setSTAConfig static ip not set
*WM: [1] AutoConnect: SUCCESS
*WM: [1] STA IP Address: 192.168.2.116
N: BLE scans interval: 55555
N: BLE scans number before connect: 10
N: Publishing only BLE sensors: false
N: minrssi: 100
N: Low Power Mode: 0
N: OpenMQTTGateway modules: [“BT”]
N: ************** Setup OpenMQTTGateway end **************
W: MQTT connection…
W: MQTT client disconnected no BLE scan
[E][WiFiClient.cpp:258] connect(): socket error on fd 55, errno: 113, “Software caused connection abort”
W: failure_number_mqtt: 1
W: failed, rc=-2

Can you help me?

Hello,

Depending on your model you may choose instead esp32-olimex-gtw-ble-wifi either:
esp32-olimex-gtw-ble-poe
esp32-olimex-gtw-ble-poe-iso

Hello,
I tried both images, but with both it is not possible to configure via web portal, as OpenMQTTGateway wifi network is not available.

Hello,

After some testing, and a little study to understand how MQTT works, finally OpenMQTTGateway works fine on my Olimex ESP32-POE board.
I modified User_config.h with my network parameters and now my HW supports both the wi-fi connection, when I select “default_envs = esp32-olimex-gtw-ble-wifi” in “platform.ini”, and the ETH connection when I select “default_envs = esp32-olimex-gtw-ble-poe”

Thank you and greetings

1 Like