Issue gettin data bt with esp 32

hi, i connect to Mi flora but in the console of esp32 i get

rest_data
71209800c910056b8d7cc40d041002fa00
Pub json into:
home/OpenMQTTGateway/BTtoMQTT/C47C8D6B0510
{“tem”:25}

but if i sibscribe in mqtt mosquitto_sub -h localhost -t get:

“home/OpenMQTTGateway/BTtoMQTT/#” recibo
{“id”:“c4:7c:8d:6b:05:10”,“name”:“Flower care”,“rssi”:-73,“distance”:4.756481,“servicedata”:“71209800c910056b8d7cc40d041002fa00”,“servicedatauuid”:“0000fe95-0000-1000-8000-00805f9b34fb”}
{“tem”:25}

but if i subsibe to bottom level

home/OpenMQTTGateway/BTtoMQTT/C47C8D6B0510

i dont get any data.

  • List item

Hello,

Could you subscribe by adding verbose option -v so as to see where the data are published?

Hi. I finally find the problem, it is, that esp32 don`t refresh state of wifi connection before each publication.

so if wifi access-point hangs after the first publication de gateway continue send to serial port the information get, but MQTT recived

home/OpenMQTTGateway/LWT offline

So if i connect to mqtt after this anyone know state of wifi