DNS返回Out of memory error

sunny
Posts: 1
Joined: Fri Mar 31, 2017 10:41 pm

DNS返回Out of memory error

Postby sunny » Sat Apr 01, 2017 8:24 am

使用SDK中的MQTT连接服务器,由于wifi信号不好会经常出现断网重新连接的情况,重连次数多了以后MQTT_Connect函数中的espconn_gethostbyname返回Out of memory error,导致mqtt永远断开,请问是什么原因?谢谢!

Her Majesty
Posts: 155
Joined: Mon Oct 27, 2014 11:09 am

Re: DNS返回Out of memory error

Postby Her Majesty » Wed Apr 05, 2017 4:34 pm

out of memory 是内存不够了吧,可以用 system_get_free_heap_size 查查是哪里占了没释放。

Who is online

Users browsing this forum: No registered users and 1 guest