WLAN connected, but no MQTT messages

Hi,

I have an ESP32 board, and I want to set up the OpenMQTTGateway to listen to my Miflora Plant sensors. Later, it should also listen to 433 Mhz signals, but I don’t have the hardware for that connected yet. So for the moment, it should only do the BLE devices.I have gotten so far that it connects to my wireless network, but then it seems to “hang”. The log looks like this:

*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] AutoConnect: SUCCESS 
*WM: [1] STA IP Address: 192.168.179.82
connected...yeey :)
saving config
{"mqtt_server":"192.168.178.222","mqtt_port":"1883","mqtt_user":"","mqtt_pass":"","mqtt_topic":"home/","gateway_name":"OpenMQTTGateway1"}OpenMQTTGateway mac:
24:6F:28:96:90:3C
OpenMQTTGateway ip:
192.168.179.82
1883
Connecting to MQTT by IP adress
192.168.178.222
Bosch BME280 Initialized - Result of .begin(): 0x0
No TSL2561 detected
TSL2561 Initialized. Printing detials now.
------------------------------------
Sensor:       TSL2561
Driver Ver:   1
Unique ID:    12345
Max Value:    17000.00 lux
Min Value:    1.00 lux
Resolution:   1.00 lux
------------------------------------

IR_EMITTER_PIN
14
IR_RECEIVER_PIN
26
ZgatewayIR setup done
ZgatewayLORA setup failed!

The last thing I always see in the log is the “ZgatewayLORA setup failed!”.
Any ideas why that happens? What does the ZgatewayLORA do?

Thanks in advance &
Kind Regards,
judith_21

Hello,

If for the moment you only want to get mi flora data with an esp 32 you should use:
esp32dev-ble environment
if you use platformio.ini

or if you use arduino IDE, uncomment ZgatewayBT into user_config.h.

If you upload binaries directly just take the ones begining by esp32dev-ble.

This is described below in the upload section:
https://docs.openmqttgateway.com/

Hello,

OK, thanks, that did it. :slight_smile:
But does that mean that it won’t work to listen to 433Mhz and BLE with the same ESP32?
Or, if it is possible, what would I have to do differently when I want to add the hardware for the 433Mhz and listen to both signals?

Thanks & Kind Regards,
judith_21

Hello,

It is possible to add rf to esp32 with BLE. From the upload methods above which one are you using ?

Hello,

thanks for your quick replies. :slight_smile: :+1:
I am using platformio.

Kind Regards,
judith_21

Hello,

Here is an environment definition to put into platformio.ini that should fit your needs:

[env:esp32dev-rfble]
platform = ${com.esp32_platform}
board = esp32dev
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.ble}
  ${libraries.rc-switch}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayRF="RF"'
  '-DZgatewayBT="BT"'
  '-DGateway_Name="OpenMQTTGateway_ESP32_RFBLE"'