Regarding esp32 mqtt client

randhir
Posts: 1
Joined: Tue Sep 18, 2018 7:13 am

Regarding esp32 mqtt client

Postby randhir » Tue Oct 30, 2018 9:31 am

Hi All,

I am facing trouble in esp32 MQTT client.
when esp32-wroom is connected with mobile hotspot, then mqtt client runs fine.
it gets connected with broker and start sending data to broker.

But,
When esp32-wroom is connected with any Router AP, then
after mqtt client connection with broker it immediately gets disconnected with following error log
MQTT_CLIENT: Read error or end of stream

mqtt client logs:

I (205787) MQTT_SAMPLE: MQTT_EVENT_CONNECTED
I (205787) MQTT_SAMPLE: sent subscribe successful, msg_id=64186
CHECKING -> t : 0x3ffdec34, t->_read : 0x400d70a4

I (206087) MQTT_SAMPLE: MQTT_EVENT_SUBSCRIBED, msg_id=64186
CHECKING -> t : 0x3ffdec34, t->_read : 0x400d70a4
E (206097) MQTT_CLIENT: Read error or end of stream
I (206097) MQTT_CLIENT: Reconnect after 10000 ms
Reconnect after 10000 ms
I (206107) MQTT_SAMPLE: MQTT_EVENT_DISCONNECTED


Please help me with this issue.

Thanks and Regards,
Randhir

Who is online

Users browsing this forum: Bing [Bot] and 107 guests