idf v5.2.1
开启mqtt 连接手机wifi 然后关闭数据流量和打开数据流量(模拟网络超时) esp_get_free_heap_size 获取到的内存越来越小 ,只有wifi重连才会释放内存
mqtt组件里面发送数据采用esp_transport_write发送的数据,esp_transport_write发送数据是直接发给tcp 吗 ,不知道怎么释放内存
ESP32CE MQTT 断线重连后内存未释放问题
Re: ESP32CE MQTT 断线重连后内存未释放问题
/* MQTT (over TCP) Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include "esp_wifi.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "esp_netif.h"
#include "protocol_examples_common.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "freertos/queue.h"
#include "lwip/sockets.h"
#include "lwip/dns.h"
#include "lwip/netdb.h"
#include "esp_log.h"
#include "mqtt_client.h"
static const char *TAG = "mqtt_example";
esp_mqtt_client_handle_t mqtt_client = NULL;
static void user_task(void *pvParameters);
static void log_error_if_nonzero(const char *message, int error_code)
{
if (error_code != 0) {
ESP_LOGE(TAG, "Last error %s: 0x%x", message, error_code);
}
}
/*
* @brief Event handler registered to receive MQTT events
*
* This function is called by the MQTT client event loop.
*
* @param handler_args user data registered to the event.
* @param base Event base for the handler(always MQTT Base in this example).
* @param event_id The id for the received event.
* @param event_data The data for the event, esp_mqtt_event_handle_t.
*/
int t = 0;
static void mqtt_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data)
{
ESP_LOGD(TAG, "Event dispatched from event loop base=%s, event_id=%" PRIi32 "", base, event_id);
esp_mqtt_event_handle_t event = event_data;
esp_mqtt_client_handle_t client = event->client;
int msg_id;
switch ((esp_mqtt_event_id_t)event_id) {
case MQTT_EVENT_CONNECTED:
t =1;
ESP_LOGI(TAG, "MQTT_EVENT_CONNECTED");
msg_id = esp_mqtt_client_publish(client, "/topic/qos1", "data_3", 0, 1, 0);
ESP_LOGI(TAG, "sent publish successful, msg_id=%d", msg_id);
msg_id = esp_mqtt_client_subscribe(client, "/topic/qos0", 0);
ESP_LOGI(TAG, "sent subscribe successful, msg_id=%d", msg_id);
msg_id = esp_mqtt_client_subscribe(client, "/topic/qos1", 1);
ESP_LOGI(TAG, "sent subscribe successful, msg_id=%d", msg_id);
msg_id = esp_mqtt_client_unsubscribe(client, "/topic/qos1");
ESP_LOGI(TAG, "sent unsubscribe successful, msg_id=%d", msg_id);
break;
case MQTT_EVENT_DISCONNECTED:
t =0;
ESP_LOGI(TAG, "MQTT_EVENT_DISCONNECTED");
break;
case MQTT_EVENT_SUBSCRIBED:
ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id);
msg_id = esp_mqtt_client_publish(client, "/topic/qos0", "data", 0, 0, 0);
ESP_LOGI(TAG, "sent publish successful, msg_id=%d", msg_id);
break;
case MQTT_EVENT_UNSUBSCRIBED:
ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id);
break;
case MQTT_EVENT_PUBLISHED:
ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id);
break;
case MQTT_EVENT_DATA:
ESP_LOGI(TAG, "MQTT_EVENT_DATA");
printf("TOPIC=%.*s\r\n", event->topic_len, event->topic);
printf("DATA=%.*s\r\n", event->data_len, event->data);
break;
case MQTT_EVENT_ERROR:
ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
if (event->error_handle->error_type == MQTT_ERROR_TYPE_TCP_TRANSPORT) {
log_error_if_nonzero("reported from esp-tls", event->error_handle->esp_tls_last_esp_err);
log_error_if_nonzero("reported from tls stack", event->error_handle->esp_tls_stack_err);
log_error_if_nonzero("captured as transport's socket errno", event->error_handle->esp_transport_sock_errno);
ESP_LOGI(TAG, "Last errno string (%s)", strerror(event->error_handle->esp_transport_sock_errno));
}
break;
default:
ESP_LOGI(TAG, "Other event id:%d", event->event_id);
break;
}
}
void mqtt_app_start(void)
{
if(mqtt_client == NULL){
esp_mqtt_client_config_t mqtt_cfg = {
.broker.address.uri = "mqtt://sem-meter.tumblevd.com:2301",
.credentials.client_id = "DCDA0C82FBED",
/*00.00.04*/
// .session.last_will.topic = "SEMMETER/DCDA0C82FBED/CONNECT",
// .session.last_will.msg = "{\"Id\":\"server\",\"Cmd\":\"Offline\",\"CmdInt\":0}",
// .session.last_will.msg_len = strlen("{\"Id\":\"server\",\"Cmd\":\"Offline\",\"CmdInt\":0}"),
// .session.last_will.retain = 1,
// .session.keepalive = 120,
// .buffer.size = 2048,
// .task.priority = 20,
// .network.reconnect_timeout_ms = 5*1000,
};
mqtt_client = esp_mqtt_client_init(&mqtt_cfg);
/* The last argument may be used to pass data to the event handler, in this example mqtt_event_handler */
esp_mqtt_client_register_event(mqtt_client, ESP_EVENT_ANY_ID, mqtt_event_handler, NULL);
esp_mqtt_client_start(mqtt_client);
ESP_LOGI(TAG,"MQTT Init OK !!!! ---> 1");
};
}
// static void mqtt_app_start(void)
// {
// esp_mqtt_client_config_t mqtt_cfg = {
// .broker.address.uri = CONFIG_BROKER_URL,
// };
// #if CONFIG_BROKER_URL_FROM_STDIN
// char line[128];
// if (strcmp(mqtt_cfg.broker.address.uri, "FROM_STDIN") == 0) {
// int count = 0;
// printf("Please enter url of mqtt broker\n");
// while (count < 128) {
// int c = fgetc(stdin);
// if (c == '\n') {
// line[count] = '\0';
// break;
// } else if (c > 0 && c < 127) {
// line[count] = c;
// ++count;
// }
// vTaskDelay(10 / portTICK_PERIOD_MS);
// }
// mqtt_cfg.broker.address.uri = line;
// printf("Broker url: %s\n", line);
// } else {
// ESP_LOGE(TAG, "Configuration mismatch: wrong broker url");
// abort();
// }
// #endif /* CONFIG_BROKER_URL_FROM_STDIN */
// esp_mqtt_client_handle_t client = esp_mqtt_client_init(&mqtt_cfg);
// /* The last argument may be used to pass data to the event handler, in this example mqtt_event_handler */
// esp_mqtt_client_register_event(client, ESP_EVENT_ANY_ID, mqtt_event_handler, NULL);
// esp_mqtt_client_start(client);
// }
void app_main(void)
{
ESP_LOGI(TAG, "[APP] Startup..");
ESP_LOGI(TAG, "[APP] Free memory: %" PRIu32 " bytes", esp_get_free_heap_size());
ESP_LOGI(TAG, "[APP] IDF version: %s", esp_get_idf_version());
esp_log_level_set("*", ESP_LOG_INFO);
esp_log_level_set("mqtt_client", ESP_LOG_VERBOSE);
esp_log_level_set("mqtt_example", ESP_LOG_VERBOSE);
esp_log_level_set("transport_base", ESP_LOG_VERBOSE);
esp_log_level_set("esp-tls", ESP_LOG_VERBOSE);
esp_log_level_set("transport", ESP_LOG_VERBOSE);
esp_log_level_set("outbox", ESP_LOG_VERBOSE);
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
/* This helper function configures Wi-Fi or Ethernet, as selected in menuconfig.
* Read "Establishing Wi-Fi or Ethernet Connection" section in
* examples/protocols/README.md for more information about this function.
*/
ESP_ERROR_CHECK(example_connect());
mqtt_app_start();
xTaskCreate(user_task, "user_task", 4096, NULL, 3, NULL);
while (1)
{
vTaskDelay((50000) / portTICK_PERIOD_MS);
}
}
static void user_task(void *pvParameters)
{
char data[4096];
while (1)
{
if(t == 1){
esp_mqtt_client_publish(mqtt_client, "SEMMETER/DCDA0C82FBED/DATA", "SEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATA", 0, 0, 0);
}
//打印剩余ram和堆容量
printf("IDLE: esp_get_free_heap_size %ld esp_get_minimum_free_heap_size : %ld Bytes\n", esp_get_free_heap_size(),esp_get_minimum_free_heap_size());
vTaskDelay((2000) / portTICK_PERIOD_MS);
}
}
(129) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=ac338h (705336) map
I (242) esp_image: segment 4: paddr=000ec360 vaddr=40386dc0 size=0a268h ( 41576) load
I (256) boot: Loaded app from partition at offset 0x10000
I (256) boot: Disabling RNG early entropy source...
I (267) cpu_start: Unicore app
I (276) cpu_start: Pro cpu start user code
I (276) cpu_start: cpu freq: 160000000 Hz
I (276) cpu_start: Application information:
I (279) cpu_start: Project name: mqtt_tcp
I (284) cpu_start: App version: v5.2.1-dirty
I (290) cpu_start: Compile time: Jun 19 2024 17:38:48
I (296) cpu_start: ELF file SHA256: 871a3f6ce...
I (301) cpu_start: ESP-IDF: v5.2.1-dirty
I (306) cpu_start: Min chip rev: v0.3
I (311) cpu_start: Max chip rev: v1.99
I (316) cpu_start: Chip rev: v0.4
I (321) heap_init: Initializing. RAM available for dynamic allocation:
I (328) heap_init: At 3FC984F0 len 00027B10 (158 KiB): RAM
I (334) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM
I (341) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM
I (348) heap_init: At 50000010 len 00001FD8 (7 KiB): RTCRAM
I (355) spi_flash: detected chip: generic
I (359) spi_flash: flash io: dio
W (363) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (377) sleep: Configure to isolate all GPIO pins in sleep state
I (383) sleep: Enable automatic switching of GPIO sleep configuration
I (390) main_task: Started on CPU0
I (390) main_task: Calling app_main()
I (390) mqtt_example: [APP] Startup..
I (400) mqtt_example: [APP] Free memory: 281408 bytes
I (400) mqtt_example: [APP] IDF version: v5.2.1-dirty
I (420) example_connect: Start example_connect.
I (420) pp: pp rom version: 9387209
I (420) net80211: net80211 rom version: 9387209
I (430) wifi:wifi driver task: 3fca0de0, prio:23, stack:6656, core=0
I (440) wifi:wifi firmware version: a9f5b59
I (440) wifi:wifi certification version: v7.0
I (440) wifi:config NVS flash: enabled
I (440) wifi:config nano formating: disabled
I (450) wifi:Init data frame dynamic rx buffer num: 32
I (450) wifi:Init static rx mgmt buffer num: 5
I (450) wifi:Init management short buffer num: 32
I (460) wifi:Init dynamic tx buffer num: 32
I (460) wifi:Init static tx FG buffer num: 2
I (470) wifi:Init static rx buffer size: 1600
I (470) wifi:Init static rx buffer num: 10
I (470) wifi:Init dynamic rx buffer num: 32
I (480) wifi_init: rx ba win: 6
I (480) wifi_init: tcpip mbox: 32
I (490) wifi_init: udp mbox: 6
I (490) wifi_init: tcp mbox: 6
I (490) wifi_init: tcp tx win: 5760
I (500) wifi_init: tcp rx win: 5760
I (500) wifi_init: tcp mss: 1440
I (510) wifi_init: WiFi IRAM OP enabled
I (510) wifi_init: WiFi RX IRAM OP enabled
I (520) phy_init: phy_version 1150,7c3c08f,Jan 24 2024,17:32:21
I (550) wifi:mode : sta (dc:da:0c:82:fb:ec)
I (550) wifi:enable tsf
I (560) example_connect: Connecting to myssid...
I (560) example_connect: Waiting for IP(s)
I (2960) wifi<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (3260) wifi:state: init -> auth (b0)
I (3280) wifi:state: auth -> assoc (0)
I (3330) wifi:state: assoc -> run (10)
I (3360) wifi:connected with myssid, aid = 8, channel 11, BW20, bssid = 12:63:a1:0a:89:c3
I (3360) wifi:security: WPA2-PSK, phy: bgn, rssi: -20
I (3360) wifi:pm start, type: 1
I (3360) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3370) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (3400) wifi:<ba-add>idx:0 (ifx:0, 12:63:a1:0a:89:c3), tid:0, ssn:1, winSize:64
I (3430) wifi:dp: 2, bi: 102400, li: 4, scale listen interval from 307200 us to 409600 us
I (3430) wifi:AP's beacon interval = 102400 us, DTIM period = 2
I (4380) esp_netif_handlers: example_netif_sta ip: 192.168.107.43, mask: 255.255.255.0, gw: 192.168.107.117
I (4380) example_connect: Got IPv4 event: Interface "example_netif_sta" address: 192.168.107.43
I (4420) example_connect: Got IPv6 event: Interface "example_netif_sta" address: fe80:0000:0000:0000:deda:0cff:fe82:fbec, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (4420) example_common: Connected to example_netif_sta
I (4430) example_common: - IPv4 address: 192.168.107.43,
I (4430) example_common: - IPv6 address: fe80:0000:0000:0000:deda:0cff:fe82:fbec, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (4440) mqtt_example: Other event id:7
I (4450) mqtt_example: MQTT Init OK !!!! ---> 1
IDLE: esp_get_free_heap_size 216588 esp_get_minimum_free_heap_size : 216588 Bytes
I (5190) wifi:<ba-add>idx:1 (ifx:0, 12:63:a1:0a:89:c3), tid:3, ssn:0, winSize:64
I (5600) mqtt_example: MQTT_EVENT_CONNECTED
I (5600) mqtt_example: sent publish successful, msg_id=14067
I (5600) mqtt_example: sent subscribe successful, msg_id=6171
I (5600) mqtt_example: sent subscribe successful, msg_id=60217
I (5610) mqtt_example: sent unsubscribe successful, msg_id=13245
I (6030) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=14067
I (6430) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=6171
I (6430) mqtt_example: sent publish successful, msg_id=0
I (6440) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=60217
I (6440) mqtt_example: sent publish successful, msg_id=0
I (6450) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=13245
IDLE: esp_get_free_heap_size 209848 esp_get_minimum_free_heap_size : 209312 Bytes
I (6820) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (6820) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 210420 esp_get_minimum_free_heap_size : 208128 Bytes
W (30470) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (30470) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (30470) mqtt_example: MQTT_EVENT_DISCONNECTED
W (30480) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 211968 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
I (40480) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 211296 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211344 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211324 esp_get_minimum_free_heap_size : 208128 Bytes
I (45740) mqtt_example: MQTT_EVENT_CONNECTED
I (45740) mqtt_example: sent publish successful, msg_id=44198
I (45740) mqtt_example: sent subscribe successful, msg_id=48090
I (45740) mqtt_example: sent subscribe successful, msg_id=706
I (45750) mqtt_example: sent unsubscribe successful, msg_id=30096
I (46140) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=44198
E (46460) transport_base: tcp_read error, errno=Socket is not connected
E (46460) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (46470) mqtt_example: MQTT_EVENT_ERROR
E (46470) mqtt_example: Last error reported from esp-tls: 0x8008
E (46480) mqtt_example: Last error captured as transport's socket errno: 0x80
I (46490) mqtt_example: Last errno string (Socket is not connected)
E (46490) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (46500) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 211232 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
I (56510) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 210892 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 209752 esp_get_minimum_free_heap_size : 206368 Bytes
I (58820) mqtt_example: MQTT_EVENT_CONNECTED
I (58820) mqtt_example: sent publish successful, msg_id=36022
I (58820) mqtt_example: sent subscribe successful, msg_id=8207
I (58820) mqtt_example: sent subscribe successful, msg_id=23065
I (58830) mqtt_example: sent unsubscribe successful, msg_id=22693
I (59040) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=36022
I (59560) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=8207
I (59560) mqtt_example: sent publish successful, msg_id=0
I (59560) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=23065
I (59570) mqtt_example: sent publish successful, msg_id=0
I (59580) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=22693
I (59970) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=48090
I (59970) mqtt_example: sent publish successful, msg_id=0
I (60390) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (60400) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 205228 esp_get_minimum_free_heap_size : 202580 Bytes
I (61000) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (61000) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=706
I (61000) mqtt_example: sent publish successful, msg_id=0
I (61910) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (62330) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=30096
IDLE: esp_get_free_heap_size 207220 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207220 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206812 esp_get_minimum_free_heap_size : 202580 Bytes
W (78530) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (78530) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (78530) mqtt_example: MQTT_EVENT_DISCONNECTED
W (78540) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 207300 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207308 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207308 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207284 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207304 esp_get_minimum_free_heap_size : 202580 Bytes
I (88540) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 206588 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206632 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206632 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206632 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206588 esp_get_minimum_free_heap_size : 202580 Bytes
E (98550) esp-tls: [sock=54] select() timeout
E (98550) transport_base: Failed to open a new connection: 32774
E (98550) mqtt_client: Error transport connect
I (98550) mqtt_example: MQTT_EVENT_ERROR
E (98560) mqtt_example: Last error reported from esp-tls: 0x8006
I (98560) mqtt_example: Last errno string (Success)
I (98570) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
I (113570) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206572 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
I (123170) mqtt_example: MQTT_EVENT_CONNECTED
I (123180) mqtt_example: sent publish successful, msg_id=25425
I (123180) mqtt_example: sent subscribe successful, msg_id=22477
I (123180) mqtt_example: sent subscribe successful, msg_id=14020
I (123190) mqtt_example: sent unsubscribe successful, msg_id=22126
I (123560) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=25425
E (123760) transport_base: tcp_read error, errno=Socket is not connected
E (123760) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (123770) mqtt_example: MQTT_EVENT_ERROR
E (123770) mqtt_example: Last error reported from esp-tls: 0x8008
E (123780) mqtt_example: Last error captured as transport's socket errno: 0x80
I (123780) mqtt_example: Last errno string (Socket is not connected)
E (123790) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (123800) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 206752 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206740 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
I (138800) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 206104 esp_get_minimum_free_heap_size : 201696 Bytes
I (142200) mqtt_example: MQTT_EVENT_CONNECTED
I (142200) mqtt_example: sent publish successful, msg_id=20243
I (142200) mqtt_example: sent subscribe successful, msg_id=47278
I (142210) mqtt_example: sent subscribe successful, msg_id=38315
I (142210) mqtt_example: sent unsubscribe successful, msg_id=15001
I (142470) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=20243
IDLE: esp_get_free_heap_size 199920 esp_get_minimum_free_heap_size : 199920 Bytes
I (142830) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=47278
I (142830) mqtt_example: sent publish successful, msg_id=0
I (142840) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=38315
I (142840) mqtt_example: sent publish successful, msg_id=0
I (142850) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=15001
I (142850) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=22477
I (142860) mqtt_example: sent publish successful, msg_id=0
I (143450) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (143450) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (143460) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 200196 esp_get_minimum_free_heap_size : 194464 Bytes
I (144870) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=14020
I (144870) mqtt_example: sent publish successful, msg_id=0
I (145680) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (146290) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=22126
IDLE: esp_get_free_heap_size 203404 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202188 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202188 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201944 esp_get_minimum_free_heap_size : 194464 Bytes
W (164590) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (164590) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (164590) mqtt_example: MQTT_EVENT_DISCONNECTED
W (164600) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 202256 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
I (174600) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 201588 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201588 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201624 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201588 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201624 esp_get_minimum_free_heap_size : 194464 Bytes
I (184180) mqtt_example: MQTT_EVENT_CONNECTED
I (184180) mqtt_example: sent publish successful, msg_id=18140
I (184180) mqtt_example: sent subscribe successful, msg_id=22569
I (184190) mqtt_example: sent subscribe successful, msg_id=27938
I (184200) mqtt_example: sent unsubscribe successful, msg_id=33520
I (184610) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=18140
IDLE: esp_get_free_heap_size 195420 esp_get_minimum_free_heap_size : 194464 Bytes
E (185310) transport_base: tcp_read error, errno=Socket is not connected
E (185310) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (185320) mqtt_example: MQTT_EVENT_ERROR
E (185330) mqtt_example: Last error reported from esp-tls: 0x8008
E (185330) mqtt_example: Last error captured as transport's socket errno: 0x80
I (185340) mqtt_example: Last errno string (Socket is not connected)
E (185350) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (185360) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 202072 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202048 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
I (200360) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 201420 esp_get_minimum_free_heap_size : 193476 Bytes
I (201180) mqtt_example: MQTT_EVENT_CONNECTED
I (201180) mqtt_example: sent publish successful, msg_id=7955
I (201180) mqtt_example: sent subscribe successful, msg_id=16199
I (201190) mqtt_example: sent subscribe successful, msg_id=15124
I (201190) mqtt_example: sent unsubscribe successful, msg_id=23849
I (201600) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=7955
I (201840) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=16199
I (201840) mqtt_example: sent publish successful, msg_id=0
I (201840) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=15124
I (201850) mqtt_example: sent publish successful, msg_id=0
I (201850) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=23849
I (202210) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=22569
I (202210) mqtt_example: sent publish successful, msg_id=0
IDLE: esp_get_free_heap_size 195496 esp_get_minimum_free_heap_size : 193032 Bytes
I (202610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (202610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (203050) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (203750) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=27938
I (203750) mqtt_example: sent publish successful, msg_id=0
I (204050) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (204460) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=33520
IDLE: esp_get_free_heap_size 197496 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197516 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197516 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 198732 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197272 esp_get_minimum_free_heap_size : 193032 Bytes
W (224620) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (224620) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (224620) mqtt_example: MQTT_EVENT_DISCONNECTED
W (224630) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
I (234630) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 196684 esp_get_minimum_free_heap_size : 193032 Bytes
I (235380) mqtt_example: MQTT_EVENT_CONNECTED
I (235380) mqtt_example: sent publish successful, msg_id=45728
I (235380) mqtt_example: sent subscribe successful, msg_id=44669
I (235390) mqtt_example: sent subscribe successful, msg_id=31175
I (235400) mqtt_example: sent unsubscribe successful, msg_id=47749
I (235600) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=45728
IDLE: esp_get_free_heap_size 190752 esp_get_minimum_free_heap_size : 190752 Bytes
IDLE: esp_get_free_heap_size 190860 esp_get_minimum_free_heap_size : 190560 Bytes
W (249660) transport_base: Poll timeout or error, errno=Connection already in progress, fd=54, timeout_ms=10000
E (249660) mqtt_client: Writing didn't complete in specified timeout: errno=119
E (249660) mqtt_client: Error to resend data
I (249670) mqtt_example: MQTT_EVENT_DISCONNECTED
W (249670) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191484 esp_get_minimum_free_heap_size : 188820 Bytes
I (264670) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188796 Bytes
E (274680) esp-tls: [sock=54] select() timeout
E (274680) transport_base: Failed to open a new connection: 32774
E (274680) mqtt_client: Error transport connect
I (274680) mqtt_example: MQTT_EVENT_ERROR
E (274690) mqtt_example: Last error reported from esp-tls: 0x8006
I (274690) mqtt_example: Last errno string (Success)
I (274700) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
I (289700) mqtt_example: Other event id:7
I (290480) mqtt_example: MQTT_EVENT_CONNECTED
I (290480) mqtt_example: sent publish successful, msg_id=4391
I (290480) mqtt_example: sent subscribe successful, msg_id=2713
I (290490) mqtt_example: sent subscribe successful, msg_id=26341
I (290490) mqtt_example: sent unsubscribe successful, msg_id=30784
I (290890) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=4391
E (291340) transport_base: tcp_read error, errno=Socket is not connected
E (291340) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (291350) mqtt_example: MQTT_EVENT_ERROR
E (291350) mqtt_example: Last error reported from esp-tls: 0x8008
E (291360) mqtt_example: Last error captured as transport's socket errno: 0x80
I (291360) mqtt_example: Last errno string (Socket is not connected)
E (291370) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (291380) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 191132 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
I (301390) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
I (309320) mqtt_example: MQTT_EVENT_CONNECTED
I (309320) mqtt_example: sent publish successful, msg_id=45169
I (309320) mqtt_example: sent subscribe successful, msg_id=19675
I (309330) mqtt_example: sent subscribe successful, msg_id=28481
I (309340) mqtt_example: sent unsubscribe successful, msg_id=12415
IDLE: esp_get_free_heap_size 184572 esp_get_minimum_free_heap_size : 184572 Bytes
I (309760) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=45169
I (309930) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=19675
I (309930) mqtt_example: sent publish successful, msg_id=0
I (309930) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=28481
I (309940) mqtt_example: sent publish successful, msg_id=0
I (309950) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=12415
I (310550) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=2713
I (310560) mqtt_example: sent publish successful, msg_id=0
I (310960) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (310960) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (311360) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 184928 esp_get_minimum_free_heap_size : 182460 Bytes
I (311700) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=26341
I (311700) mqtt_example: sent publish successful, msg_id=0
I (312610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (313010) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=30784
IDLE: esp_get_free_heap_size 188140 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186924 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186924 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186680 esp_get_minimum_free_heap_size : 182460 Bytes
W (331700) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (331700) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (331700) mqtt_example: MQTT_EVENT_DISCONNECTED
W (331710) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 187008 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 187008 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 187008 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186972 esp_get_minimum_free_heap_size : 182460 Bytes
I (338150) wifi:sta rx csa, newchan=4, old=11
I (338950) wifi:switch to channel 4
I (338950) wifi<4,0>, old:<11,0>, ap:<255,255>, sta:<4,0>, prof:1
IDLE: esp_get_free_heap_size 186972 esp_get_minimum_free_heap_size : 182460 Bytes
I (341710) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 186068 esp_get_minimum_free_heap_size : 182460 Bytes
I (342440) mqtt_example: MQTT_EVENT_CONNECTED
I (342440) mqtt_example: sent publish successful, msg_id=13560
I (342450) mqtt_example: sent subscribe successful, msg_id=9460
I (342450) mqtt_example: sent subscribe successful, msg_id=7958
I (342460) mqtt_example: sent unsubscribe successful, msg_id=9133
I (342850) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=13560
E (343260) transport_base: tcp_read error, errno=Socket is not connected
E (343260) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (343260) mqtt_example: MQTT_EVENT_ERROR
E (343270) mqtt_example: Last error reported from esp-tls: 0x8008
E (343270) mqtt_example: Last error captured as transport's socket errno: 0x80
I (343280) mqtt_example: Last errno string (Socket is not connected)
E (343290) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (343300) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 186716 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
I (358300) mqtt_example: Other event id:7
I (359280) mqtt_example: MQTT_EVENT_CONNECTED
I (359280) mqtt_example: sent publish successful, msg_id=4059
I (359290) mqtt_example: sent subscribe successful, msg_id=42530
I (359290) mqtt_example: sent subscribe successful, msg_id=25640
I (359300) mqtt_example: sent unsubscribe successful, msg_id=14532
I (359700) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=4059
IDLE: esp_get_free_heap_size 179904 esp_get_minimum_free_heap_size : 179904 Bytes
I (360100) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=42530
I (360100) mqtt_example: sent publish successful, msg_id=0
I (360110) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=25640
I (360110) mqtt_example: sent publish successful, msg_id=0
I (360120) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=14532
I (360130) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=9460
I (360130) mqtt_example: sent publish successful, msg_id=0
I (360920) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (360920) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (360930) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (361330) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=7958
I (361330) mqtt_example: sent publish successful, msg_id=0
IDLE: esp_get_free_heap_size 180256 esp_get_minimum_free_heap_size : 174452 Bytes
I (361720) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (363180) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=9133
IDLE: esp_get_free_heap_size 182180 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 180316 esp_get_minimum_free_heap_size : 174452 Bytes
W (377730) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (377730) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (377730) mqtt_example: MQTT_EVENT_DISCONNECTED
W (377740) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
I (387740) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 182116 esp_get_minimum_free_heap_size : 174452 Bytes
I (388570) mqtt_example: MQTT_EVENT_CONNECTED
I (388580) mqtt_example: sent publish successful, msg_id=19879
I (388580) mqtt_example: sent subscribe successful, msg_id=21260
I (388580) mqtt_example: sent subscribe successful, msg_id=14956
I (388590) mqtt_example: sent unsubscribe successful, msg_id=1159
I (388980) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=19879
E (389400) transport_base: tcp_read error, errno=Socket is not connected
E (389400) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (389410) mqtt_example: MQTT_EVENT_ERROR
E (389410) mqtt_example: Last error reported from esp-tls: 0x8008
E (389420) mqtt_example: Last error captured as transport's socket errno: 0x80
I (389430) mqtt_example: Last errno string (Socket is not connected)
E (389430) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (389440) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 181748 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
I (399450) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 181400 esp_get_minimum_free_heap_size : 174452 Bytes
I (400240) mqtt_example: MQTT_EVENT_CONNECTED
I (400250) mqtt_example: sent publish successful, msg_id=36514
I (400250) mqtt_example: sent subscribe successful, msg_id=48519
I (400250) mqtt_example: sent subscribe successful, msg_id=33374
I (400260) mqtt_example: sent unsubscribe successful, msg_id=28929
I (400650) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=36514
IDLE: esp_get_free_heap_size 175216 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 175328 esp_get_minimum_free_heap_size : 174452 Bytes
W (414710) transport_base: Poll timeout or error, errno=Connection already in progress, fd=54, timeout_ms=10000
E (414710) mqtt_client: Writing didn't complete in specified timeout: errno=119
E (414710) mqtt_client: Error to resend data
I (414720) mqtt_example: MQTT_EVENT_DISCONNECTED
W (414720) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
I (429720) mqtt_example: Other event id:7
I (430360) mqtt_example: MQTT_EVENT_CONNECTED
I (430370) mqtt_example: sent publish successful, msg_id=28328
I (430370) mqtt_example: sent subscribe successful, msg_id=62581
I (430370) mqtt_example: sent subscribe successful, msg_id=61741
I (430380) mqtt_example: sent unsubscribe successful, msg_id=1998
IDLE: esp_get_free_heap_size 168720 esp_get_minimum_free_heap_size : 168720 Bytes
I (430750) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=28328
E (431070) transport_base: tcp_read error, errno=Socket is not connected
E (431070) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (431070) mqtt_example: MQTT_EVENT_ERROR
E (431080) mqtt_example: Last error reported from esp-tls: 0x8008
E (431090) mqtt_example: Last error captured as transport's socket errno: 0x80
I (431090) mqtt_example: Last errno string (Socket is not connected)
E (431100) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (431110) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175812 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
I (446110) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 173660 esp_get_minimum_free_heap_size : 168532 Bytes
I (446750) mqtt_example: MQTT_EVENT_CONNECTED
I (446760) mqtt_example: sent publish successful, msg_id=23965
I (446760) mqtt_example: sent subscribe successful, msg_id=23596
I (446760) mqtt_example: sent subscribe successful, msg_id=7799
I (446770) mqtt_example: sent unsubscribe successful, msg_id=33810
I (447160) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=23965
I (447860) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=23596
I (447860) mqtt_example: sent publish successful, msg_id=0
I (447870) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=7799
I (447870) mqtt_example: sent publish successful, msg_id=0
I (447880) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=33810
I (448170) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=62581
I (448170) mqtt_example: sent publish successful, msg_id=0
I (448600) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (448610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 169288 esp_get_minimum_free_heap_size : 166804 Bytes
I (448990) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=61741
I (448990) mqtt_example: sent publish successful, msg_id=0
I (449000) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (449810) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (450220) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=1998
IDLE: esp_get_free_heap_size 172496 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
使用tcp mqtt demo 修改测试也会有内存越来越小的情况!
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include "esp_wifi.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "esp_netif.h"
#include "protocol_examples_common.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "freertos/queue.h"
#include "lwip/sockets.h"
#include "lwip/dns.h"
#include "lwip/netdb.h"
#include "esp_log.h"
#include "mqtt_client.h"
static const char *TAG = "mqtt_example";
esp_mqtt_client_handle_t mqtt_client = NULL;
static void user_task(void *pvParameters);
static void log_error_if_nonzero(const char *message, int error_code)
{
if (error_code != 0) {
ESP_LOGE(TAG, "Last error %s: 0x%x", message, error_code);
}
}
/*
* @brief Event handler registered to receive MQTT events
*
* This function is called by the MQTT client event loop.
*
* @param handler_args user data registered to the event.
* @param base Event base for the handler(always MQTT Base in this example).
* @param event_id The id for the received event.
* @param event_data The data for the event, esp_mqtt_event_handle_t.
*/
int t = 0;
static void mqtt_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data)
{
ESP_LOGD(TAG, "Event dispatched from event loop base=%s, event_id=%" PRIi32 "", base, event_id);
esp_mqtt_event_handle_t event = event_data;
esp_mqtt_client_handle_t client = event->client;
int msg_id;
switch ((esp_mqtt_event_id_t)event_id) {
case MQTT_EVENT_CONNECTED:
t =1;
ESP_LOGI(TAG, "MQTT_EVENT_CONNECTED");
msg_id = esp_mqtt_client_publish(client, "/topic/qos1", "data_3", 0, 1, 0);
ESP_LOGI(TAG, "sent publish successful, msg_id=%d", msg_id);
msg_id = esp_mqtt_client_subscribe(client, "/topic/qos0", 0);
ESP_LOGI(TAG, "sent subscribe successful, msg_id=%d", msg_id);
msg_id = esp_mqtt_client_subscribe(client, "/topic/qos1", 1);
ESP_LOGI(TAG, "sent subscribe successful, msg_id=%d", msg_id);
msg_id = esp_mqtt_client_unsubscribe(client, "/topic/qos1");
ESP_LOGI(TAG, "sent unsubscribe successful, msg_id=%d", msg_id);
break;
case MQTT_EVENT_DISCONNECTED:
t =0;
ESP_LOGI(TAG, "MQTT_EVENT_DISCONNECTED");
break;
case MQTT_EVENT_SUBSCRIBED:
ESP_LOGI(TAG, "MQTT_EVENT_SUBSCRIBED, msg_id=%d", event->msg_id);
msg_id = esp_mqtt_client_publish(client, "/topic/qos0", "data", 0, 0, 0);
ESP_LOGI(TAG, "sent publish successful, msg_id=%d", msg_id);
break;
case MQTT_EVENT_UNSUBSCRIBED:
ESP_LOGI(TAG, "MQTT_EVENT_UNSUBSCRIBED, msg_id=%d", event->msg_id);
break;
case MQTT_EVENT_PUBLISHED:
ESP_LOGI(TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id);
break;
case MQTT_EVENT_DATA:
ESP_LOGI(TAG, "MQTT_EVENT_DATA");
printf("TOPIC=%.*s\r\n", event->topic_len, event->topic);
printf("DATA=%.*s\r\n", event->data_len, event->data);
break;
case MQTT_EVENT_ERROR:
ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
if (event->error_handle->error_type == MQTT_ERROR_TYPE_TCP_TRANSPORT) {
log_error_if_nonzero("reported from esp-tls", event->error_handle->esp_tls_last_esp_err);
log_error_if_nonzero("reported from tls stack", event->error_handle->esp_tls_stack_err);
log_error_if_nonzero("captured as transport's socket errno", event->error_handle->esp_transport_sock_errno);
ESP_LOGI(TAG, "Last errno string (%s)", strerror(event->error_handle->esp_transport_sock_errno));
}
break;
default:
ESP_LOGI(TAG, "Other event id:%d", event->event_id);
break;
}
}
void mqtt_app_start(void)
{
if(mqtt_client == NULL){
esp_mqtt_client_config_t mqtt_cfg = {
.broker.address.uri = "mqtt://sem-meter.tumblevd.com:2301",
.credentials.client_id = "DCDA0C82FBED",
/*00.00.04*/
// .session.last_will.topic = "SEMMETER/DCDA0C82FBED/CONNECT",
// .session.last_will.msg = "{\"Id\":\"server\",\"Cmd\":\"Offline\",\"CmdInt\":0}",
// .session.last_will.msg_len = strlen("{\"Id\":\"server\",\"Cmd\":\"Offline\",\"CmdInt\":0}"),
// .session.last_will.retain = 1,
// .session.keepalive = 120,
// .buffer.size = 2048,
// .task.priority = 20,
// .network.reconnect_timeout_ms = 5*1000,
};
mqtt_client = esp_mqtt_client_init(&mqtt_cfg);
/* The last argument may be used to pass data to the event handler, in this example mqtt_event_handler */
esp_mqtt_client_register_event(mqtt_client, ESP_EVENT_ANY_ID, mqtt_event_handler, NULL);
esp_mqtt_client_start(mqtt_client);
ESP_LOGI(TAG,"MQTT Init OK !!!! ---> 1");
};
}
// static void mqtt_app_start(void)
// {
// esp_mqtt_client_config_t mqtt_cfg = {
// .broker.address.uri = CONFIG_BROKER_URL,
// };
// #if CONFIG_BROKER_URL_FROM_STDIN
// char line[128];
// if (strcmp(mqtt_cfg.broker.address.uri, "FROM_STDIN") == 0) {
// int count = 0;
// printf("Please enter url of mqtt broker\n");
// while (count < 128) {
// int c = fgetc(stdin);
// if (c == '\n') {
// line[count] = '\0';
// break;
// } else if (c > 0 && c < 127) {
// line[count] = c;
// ++count;
// }
// vTaskDelay(10 / portTICK_PERIOD_MS);
// }
// mqtt_cfg.broker.address.uri = line;
// printf("Broker url: %s\n", line);
// } else {
// ESP_LOGE(TAG, "Configuration mismatch: wrong broker url");
// abort();
// }
// #endif /* CONFIG_BROKER_URL_FROM_STDIN */
// esp_mqtt_client_handle_t client = esp_mqtt_client_init(&mqtt_cfg);
// /* The last argument may be used to pass data to the event handler, in this example mqtt_event_handler */
// esp_mqtt_client_register_event(client, ESP_EVENT_ANY_ID, mqtt_event_handler, NULL);
// esp_mqtt_client_start(client);
// }
void app_main(void)
{
ESP_LOGI(TAG, "[APP] Startup..");
ESP_LOGI(TAG, "[APP] Free memory: %" PRIu32 " bytes", esp_get_free_heap_size());
ESP_LOGI(TAG, "[APP] IDF version: %s", esp_get_idf_version());
esp_log_level_set("*", ESP_LOG_INFO);
esp_log_level_set("mqtt_client", ESP_LOG_VERBOSE);
esp_log_level_set("mqtt_example", ESP_LOG_VERBOSE);
esp_log_level_set("transport_base", ESP_LOG_VERBOSE);
esp_log_level_set("esp-tls", ESP_LOG_VERBOSE);
esp_log_level_set("transport", ESP_LOG_VERBOSE);
esp_log_level_set("outbox", ESP_LOG_VERBOSE);
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
/* This helper function configures Wi-Fi or Ethernet, as selected in menuconfig.
* Read "Establishing Wi-Fi or Ethernet Connection" section in
* examples/protocols/README.md for more information about this function.
*/
ESP_ERROR_CHECK(example_connect());
mqtt_app_start();
xTaskCreate(user_task, "user_task", 4096, NULL, 3, NULL);
while (1)
{
vTaskDelay((50000) / portTICK_PERIOD_MS);
}
}
static void user_task(void *pvParameters)
{
char data[4096];
while (1)
{
if(t == 1){
esp_mqtt_client_publish(mqtt_client, "SEMMETER/DCDA0C82FBED/DATA", "SEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATASEMMETER/DCDA0C82FBED/DATA", 0, 0, 0);
}
//打印剩余ram和堆容量
printf("IDLE: esp_get_free_heap_size %ld esp_get_minimum_free_heap_size : %ld Bytes\n", esp_get_free_heap_size(),esp_get_minimum_free_heap_size());
vTaskDelay((2000) / portTICK_PERIOD_MS);
}
}
(129) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=ac338h (705336) map
I (242) esp_image: segment 4: paddr=000ec360 vaddr=40386dc0 size=0a268h ( 41576) load
I (256) boot: Loaded app from partition at offset 0x10000
I (256) boot: Disabling RNG early entropy source...
I (267) cpu_start: Unicore app
I (276) cpu_start: Pro cpu start user code
I (276) cpu_start: cpu freq: 160000000 Hz
I (276) cpu_start: Application information:
I (279) cpu_start: Project name: mqtt_tcp
I (284) cpu_start: App version: v5.2.1-dirty
I (290) cpu_start: Compile time: Jun 19 2024 17:38:48
I (296) cpu_start: ELF file SHA256: 871a3f6ce...
I (301) cpu_start: ESP-IDF: v5.2.1-dirty
I (306) cpu_start: Min chip rev: v0.3
I (311) cpu_start: Max chip rev: v1.99
I (316) cpu_start: Chip rev: v0.4
I (321) heap_init: Initializing. RAM available for dynamic allocation:
I (328) heap_init: At 3FC984F0 len 00027B10 (158 KiB): RAM
I (334) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM
I (341) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM
I (348) heap_init: At 50000010 len 00001FD8 (7 KiB): RTCRAM
I (355) spi_flash: detected chip: generic
I (359) spi_flash: flash io: dio
W (363) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (377) sleep: Configure to isolate all GPIO pins in sleep state
I (383) sleep: Enable automatic switching of GPIO sleep configuration
I (390) main_task: Started on CPU0
I (390) main_task: Calling app_main()
I (390) mqtt_example: [APP] Startup..
I (400) mqtt_example: [APP] Free memory: 281408 bytes
I (400) mqtt_example: [APP] IDF version: v5.2.1-dirty
I (420) example_connect: Start example_connect.
I (420) pp: pp rom version: 9387209
I (420) net80211: net80211 rom version: 9387209
I (430) wifi:wifi driver task: 3fca0de0, prio:23, stack:6656, core=0
I (440) wifi:wifi firmware version: a9f5b59
I (440) wifi:wifi certification version: v7.0
I (440) wifi:config NVS flash: enabled
I (440) wifi:config nano formating: disabled
I (450) wifi:Init data frame dynamic rx buffer num: 32
I (450) wifi:Init static rx mgmt buffer num: 5
I (450) wifi:Init management short buffer num: 32
I (460) wifi:Init dynamic tx buffer num: 32
I (460) wifi:Init static tx FG buffer num: 2
I (470) wifi:Init static rx buffer size: 1600
I (470) wifi:Init static rx buffer num: 10
I (470) wifi:Init dynamic rx buffer num: 32
I (480) wifi_init: rx ba win: 6
I (480) wifi_init: tcpip mbox: 32
I (490) wifi_init: udp mbox: 6
I (490) wifi_init: tcp mbox: 6
I (490) wifi_init: tcp tx win: 5760
I (500) wifi_init: tcp rx win: 5760
I (500) wifi_init: tcp mss: 1440
I (510) wifi_init: WiFi IRAM OP enabled
I (510) wifi_init: WiFi RX IRAM OP enabled
I (520) phy_init: phy_version 1150,7c3c08f,Jan 24 2024,17:32:21
I (550) wifi:mode : sta (dc:da:0c:82:fb:ec)
I (550) wifi:enable tsf
I (560) example_connect: Connecting to myssid...
I (560) example_connect: Waiting for IP(s)
I (2960) wifi<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (3260) wifi:state: init -> auth (b0)
I (3280) wifi:state: auth -> assoc (0)
I (3330) wifi:state: assoc -> run (10)
I (3360) wifi:connected with myssid, aid = 8, channel 11, BW20, bssid = 12:63:a1:0a:89:c3
I (3360) wifi:security: WPA2-PSK, phy: bgn, rssi: -20
I (3360) wifi:pm start, type: 1
I (3360) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3370) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (3400) wifi:<ba-add>idx:0 (ifx:0, 12:63:a1:0a:89:c3), tid:0, ssn:1, winSize:64
I (3430) wifi:dp: 2, bi: 102400, li: 4, scale listen interval from 307200 us to 409600 us
I (3430) wifi:AP's beacon interval = 102400 us, DTIM period = 2
I (4380) esp_netif_handlers: example_netif_sta ip: 192.168.107.43, mask: 255.255.255.0, gw: 192.168.107.117
I (4380) example_connect: Got IPv4 event: Interface "example_netif_sta" address: 192.168.107.43
I (4420) example_connect: Got IPv6 event: Interface "example_netif_sta" address: fe80:0000:0000:0000:deda:0cff:fe82:fbec, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (4420) example_common: Connected to example_netif_sta
I (4430) example_common: - IPv4 address: 192.168.107.43,
I (4430) example_common: - IPv6 address: fe80:0000:0000:0000:deda:0cff:fe82:fbec, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (4440) mqtt_example: Other event id:7
I (4450) mqtt_example: MQTT Init OK !!!! ---> 1
IDLE: esp_get_free_heap_size 216588 esp_get_minimum_free_heap_size : 216588 Bytes
I (5190) wifi:<ba-add>idx:1 (ifx:0, 12:63:a1:0a:89:c3), tid:3, ssn:0, winSize:64
I (5600) mqtt_example: MQTT_EVENT_CONNECTED
I (5600) mqtt_example: sent publish successful, msg_id=14067
I (5600) mqtt_example: sent subscribe successful, msg_id=6171
I (5600) mqtt_example: sent subscribe successful, msg_id=60217
I (5610) mqtt_example: sent unsubscribe successful, msg_id=13245
I (6030) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=14067
I (6430) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=6171
I (6430) mqtt_example: sent publish successful, msg_id=0
I (6440) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=60217
I (6440) mqtt_example: sent publish successful, msg_id=0
I (6450) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=13245
IDLE: esp_get_free_heap_size 209848 esp_get_minimum_free_heap_size : 209312 Bytes
I (6820) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (6820) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211916 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 210420 esp_get_minimum_free_heap_size : 208128 Bytes
W (30470) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (30470) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (30470) mqtt_example: MQTT_EVENT_DISCONNECTED
W (30480) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 211968 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 212008 esp_get_minimum_free_heap_size : 208128 Bytes
I (40480) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 211296 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211344 esp_get_minimum_free_heap_size : 208128 Bytes
IDLE: esp_get_free_heap_size 211324 esp_get_minimum_free_heap_size : 208128 Bytes
I (45740) mqtt_example: MQTT_EVENT_CONNECTED
I (45740) mqtt_example: sent publish successful, msg_id=44198
I (45740) mqtt_example: sent subscribe successful, msg_id=48090
I (45740) mqtt_example: sent subscribe successful, msg_id=706
I (45750) mqtt_example: sent unsubscribe successful, msg_id=30096
I (46140) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=44198
E (46460) transport_base: tcp_read error, errno=Socket is not connected
E (46460) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (46470) mqtt_example: MQTT_EVENT_ERROR
E (46470) mqtt_example: Last error reported from esp-tls: 0x8008
E (46480) mqtt_example: Last error captured as transport's socket errno: 0x80
I (46490) mqtt_example: Last errno string (Socket is not connected)
E (46490) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (46500) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 211232 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 211784 esp_get_minimum_free_heap_size : 206368 Bytes
I (56510) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 210892 esp_get_minimum_free_heap_size : 206368 Bytes
IDLE: esp_get_free_heap_size 209752 esp_get_minimum_free_heap_size : 206368 Bytes
I (58820) mqtt_example: MQTT_EVENT_CONNECTED
I (58820) mqtt_example: sent publish successful, msg_id=36022
I (58820) mqtt_example: sent subscribe successful, msg_id=8207
I (58820) mqtt_example: sent subscribe successful, msg_id=23065
I (58830) mqtt_example: sent unsubscribe successful, msg_id=22693
I (59040) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=36022
I (59560) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=8207
I (59560) mqtt_example: sent publish successful, msg_id=0
I (59560) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=23065
I (59570) mqtt_example: sent publish successful, msg_id=0
I (59580) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=22693
I (59970) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=48090
I (59970) mqtt_example: sent publish successful, msg_id=0
I (60390) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (60400) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 205228 esp_get_minimum_free_heap_size : 202580 Bytes
I (61000) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (61000) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=706
I (61000) mqtt_example: sent publish successful, msg_id=0
I (61910) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (62330) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=30096
IDLE: esp_get_free_heap_size 207220 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207220 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206812 esp_get_minimum_free_heap_size : 202580 Bytes
W (78530) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (78530) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (78530) mqtt_example: MQTT_EVENT_DISCONNECTED
W (78540) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 207300 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207308 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207308 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207284 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207304 esp_get_minimum_free_heap_size : 202580 Bytes
I (88540) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 206588 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206632 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206632 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206632 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206588 esp_get_minimum_free_heap_size : 202580 Bytes
E (98550) esp-tls: [sock=54] select() timeout
E (98550) transport_base: Failed to open a new connection: 32774
E (98550) mqtt_client: Error transport connect
I (98550) mqtt_example: MQTT_EVENT_ERROR
E (98560) mqtt_example: Last error reported from esp-tls: 0x8006
I (98560) mqtt_example: Last errno string (Success)
I (98570) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 207296 esp_get_minimum_free_heap_size : 202580 Bytes
I (113570) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206572 esp_get_minimum_free_heap_size : 202580 Bytes
IDLE: esp_get_free_heap_size 206620 esp_get_minimum_free_heap_size : 202580 Bytes
I (123170) mqtt_example: MQTT_EVENT_CONNECTED
I (123180) mqtt_example: sent publish successful, msg_id=25425
I (123180) mqtt_example: sent subscribe successful, msg_id=22477
I (123180) mqtt_example: sent subscribe successful, msg_id=14020
I (123190) mqtt_example: sent unsubscribe successful, msg_id=22126
I (123560) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=25425
E (123760) transport_base: tcp_read error, errno=Socket is not connected
E (123760) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (123770) mqtt_example: MQTT_EVENT_ERROR
E (123770) mqtt_example: Last error reported from esp-tls: 0x8008
E (123780) mqtt_example: Last error captured as transport's socket errno: 0x80
I (123780) mqtt_example: Last errno string (Socket is not connected)
E (123790) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (123800) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 206752 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206740 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
IDLE: esp_get_free_heap_size 206776 esp_get_minimum_free_heap_size : 201696 Bytes
I (138800) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 206104 esp_get_minimum_free_heap_size : 201696 Bytes
I (142200) mqtt_example: MQTT_EVENT_CONNECTED
I (142200) mqtt_example: sent publish successful, msg_id=20243
I (142200) mqtt_example: sent subscribe successful, msg_id=47278
I (142210) mqtt_example: sent subscribe successful, msg_id=38315
I (142210) mqtt_example: sent unsubscribe successful, msg_id=15001
I (142470) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=20243
IDLE: esp_get_free_heap_size 199920 esp_get_minimum_free_heap_size : 199920 Bytes
I (142830) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=47278
I (142830) mqtt_example: sent publish successful, msg_id=0
I (142840) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=38315
I (142840) mqtt_example: sent publish successful, msg_id=0
I (142850) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=15001
I (142850) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=22477
I (142860) mqtt_example: sent publish successful, msg_id=0
I (143450) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (143450) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (143460) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 200196 esp_get_minimum_free_heap_size : 194464 Bytes
I (144870) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=14020
I (144870) mqtt_example: sent publish successful, msg_id=0
I (145680) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (146290) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=22126
IDLE: esp_get_free_heap_size 203404 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202188 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202188 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201944 esp_get_minimum_free_heap_size : 194464 Bytes
W (164590) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (164590) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (164590) mqtt_example: MQTT_EVENT_DISCONNECTED
W (164600) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 202256 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 202288 esp_get_minimum_free_heap_size : 194464 Bytes
I (174600) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 201588 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201588 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201624 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201588 esp_get_minimum_free_heap_size : 194464 Bytes
IDLE: esp_get_free_heap_size 201624 esp_get_minimum_free_heap_size : 194464 Bytes
I (184180) mqtt_example: MQTT_EVENT_CONNECTED
I (184180) mqtt_example: sent publish successful, msg_id=18140
I (184180) mqtt_example: sent subscribe successful, msg_id=22569
I (184190) mqtt_example: sent subscribe successful, msg_id=27938
I (184200) mqtt_example: sent unsubscribe successful, msg_id=33520
I (184610) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=18140
IDLE: esp_get_free_heap_size 195420 esp_get_minimum_free_heap_size : 194464 Bytes
E (185310) transport_base: tcp_read error, errno=Socket is not connected
E (185310) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (185320) mqtt_example: MQTT_EVENT_ERROR
E (185330) mqtt_example: Last error reported from esp-tls: 0x8008
E (185330) mqtt_example: Last error captured as transport's socket errno: 0x80
I (185340) mqtt_example: Last errno string (Socket is not connected)
E (185350) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (185360) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 202072 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202048 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
IDLE: esp_get_free_heap_size 202084 esp_get_minimum_free_heap_size : 193476 Bytes
I (200360) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 201420 esp_get_minimum_free_heap_size : 193476 Bytes
I (201180) mqtt_example: MQTT_EVENT_CONNECTED
I (201180) mqtt_example: sent publish successful, msg_id=7955
I (201180) mqtt_example: sent subscribe successful, msg_id=16199
I (201190) mqtt_example: sent subscribe successful, msg_id=15124
I (201190) mqtt_example: sent unsubscribe successful, msg_id=23849
I (201600) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=7955
I (201840) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=16199
I (201840) mqtt_example: sent publish successful, msg_id=0
I (201840) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=15124
I (201850) mqtt_example: sent publish successful, msg_id=0
I (201850) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=23849
I (202210) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=22569
I (202210) mqtt_example: sent publish successful, msg_id=0
IDLE: esp_get_free_heap_size 195496 esp_get_minimum_free_heap_size : 193032 Bytes
I (202610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (202610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (203050) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (203750) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=27938
I (203750) mqtt_example: sent publish successful, msg_id=0
I (204050) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (204460) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=33520
IDLE: esp_get_free_heap_size 197496 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197516 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197516 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 198732 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197272 esp_get_minimum_free_heap_size : 193032 Bytes
W (224620) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (224620) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (224620) mqtt_example: MQTT_EVENT_DISCONNECTED
W (224630) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
IDLE: esp_get_free_heap_size 197600 esp_get_minimum_free_heap_size : 193032 Bytes
I (234630) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 196684 esp_get_minimum_free_heap_size : 193032 Bytes
I (235380) mqtt_example: MQTT_EVENT_CONNECTED
I (235380) mqtt_example: sent publish successful, msg_id=45728
I (235380) mqtt_example: sent subscribe successful, msg_id=44669
I (235390) mqtt_example: sent subscribe successful, msg_id=31175
I (235400) mqtt_example: sent unsubscribe successful, msg_id=47749
I (235600) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=45728
IDLE: esp_get_free_heap_size 190752 esp_get_minimum_free_heap_size : 190752 Bytes
IDLE: esp_get_free_heap_size 190860 esp_get_minimum_free_heap_size : 190560 Bytes
W (249660) transport_base: Poll timeout or error, errno=Connection already in progress, fd=54, timeout_ms=10000
E (249660) mqtt_client: Writing didn't complete in specified timeout: errno=119
E (249660) mqtt_client: Error to resend data
I (249670) mqtt_example: MQTT_EVENT_DISCONNECTED
W (249670) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 191484 esp_get_minimum_free_heap_size : 188820 Bytes
I (264670) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188820 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 188796 Bytes
E (274680) esp-tls: [sock=54] select() timeout
E (274680) transport_base: Failed to open a new connection: 32774
E (274680) mqtt_client: Error transport connect
I (274680) mqtt_example: MQTT_EVENT_ERROR
E (274690) mqtt_example: Last error reported from esp-tls: 0x8006
I (274690) mqtt_example: Last errno string (Success)
I (274700) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
IDLE: esp_get_free_heap_size 191520 esp_get_minimum_free_heap_size : 188796 Bytes
I (289700) mqtt_example: Other event id:7
I (290480) mqtt_example: MQTT_EVENT_CONNECTED
I (290480) mqtt_example: sent publish successful, msg_id=4391
I (290480) mqtt_example: sent subscribe successful, msg_id=2713
I (290490) mqtt_example: sent subscribe successful, msg_id=26341
I (290490) mqtt_example: sent unsubscribe successful, msg_id=30784
I (290890) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=4391
E (291340) transport_base: tcp_read error, errno=Socket is not connected
E (291340) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (291350) mqtt_example: MQTT_EVENT_ERROR
E (291350) mqtt_example: Last error reported from esp-tls: 0x8008
E (291360) mqtt_example: Last error captured as transport's socket errno: 0x80
I (291360) mqtt_example: Last errno string (Socket is not connected)
E (291370) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (291380) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 191132 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 191512 esp_get_minimum_free_heap_size : 185888 Bytes
I (301390) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
IDLE: esp_get_free_heap_size 190836 esp_get_minimum_free_heap_size : 185888 Bytes
I (309320) mqtt_example: MQTT_EVENT_CONNECTED
I (309320) mqtt_example: sent publish successful, msg_id=45169
I (309320) mqtt_example: sent subscribe successful, msg_id=19675
I (309330) mqtt_example: sent subscribe successful, msg_id=28481
I (309340) mqtt_example: sent unsubscribe successful, msg_id=12415
IDLE: esp_get_free_heap_size 184572 esp_get_minimum_free_heap_size : 184572 Bytes
I (309760) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=45169
I (309930) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=19675
I (309930) mqtt_example: sent publish successful, msg_id=0
I (309930) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=28481
I (309940) mqtt_example: sent publish successful, msg_id=0
I (309950) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=12415
I (310550) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=2713
I (310560) mqtt_example: sent publish successful, msg_id=0
I (310960) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (310960) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (311360) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 184928 esp_get_minimum_free_heap_size : 182460 Bytes
I (311700) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=26341
I (311700) mqtt_example: sent publish successful, msg_id=0
I (312610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (313010) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=30784
IDLE: esp_get_free_heap_size 188140 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186924 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186924 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186680 esp_get_minimum_free_heap_size : 182460 Bytes
W (331700) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (331700) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (331700) mqtt_example: MQTT_EVENT_DISCONNECTED
W (331710) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 187008 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 187008 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 187008 esp_get_minimum_free_heap_size : 182460 Bytes
IDLE: esp_get_free_heap_size 186972 esp_get_minimum_free_heap_size : 182460 Bytes
I (338150) wifi:sta rx csa, newchan=4, old=11
I (338950) wifi:switch to channel 4
I (338950) wifi<4,0>, old:<11,0>, ap:<255,255>, sta:<4,0>, prof:1
IDLE: esp_get_free_heap_size 186972 esp_get_minimum_free_heap_size : 182460 Bytes
I (341710) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 186068 esp_get_minimum_free_heap_size : 182460 Bytes
I (342440) mqtt_example: MQTT_EVENT_CONNECTED
I (342440) mqtt_example: sent publish successful, msg_id=13560
I (342450) mqtt_example: sent subscribe successful, msg_id=9460
I (342450) mqtt_example: sent subscribe successful, msg_id=7958
I (342460) mqtt_example: sent unsubscribe successful, msg_id=9133
I (342850) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=13560
E (343260) transport_base: tcp_read error, errno=Socket is not connected
E (343260) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (343260) mqtt_example: MQTT_EVENT_ERROR
E (343270) mqtt_example: Last error reported from esp-tls: 0x8008
E (343270) mqtt_example: Last error captured as transport's socket errno: 0x80
I (343280) mqtt_example: Last errno string (Socket is not connected)
E (343290) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (343300) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 186716 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
IDLE: esp_get_free_heap_size 186752 esp_get_minimum_free_heap_size : 181296 Bytes
I (358300) mqtt_example: Other event id:7
I (359280) mqtt_example: MQTT_EVENT_CONNECTED
I (359280) mqtt_example: sent publish successful, msg_id=4059
I (359290) mqtt_example: sent subscribe successful, msg_id=42530
I (359290) mqtt_example: sent subscribe successful, msg_id=25640
I (359300) mqtt_example: sent unsubscribe successful, msg_id=14532
I (359700) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=4059
IDLE: esp_get_free_heap_size 179904 esp_get_minimum_free_heap_size : 179904 Bytes
I (360100) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=42530
I (360100) mqtt_example: sent publish successful, msg_id=0
I (360110) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=25640
I (360110) mqtt_example: sent publish successful, msg_id=0
I (360120) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=14532
I (360130) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=9460
I (360130) mqtt_example: sent publish successful, msg_id=0
I (360920) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (360920) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (360930) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (361330) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=7958
I (361330) mqtt_example: sent publish successful, msg_id=0
IDLE: esp_get_free_heap_size 180256 esp_get_minimum_free_heap_size : 174452 Bytes
I (361720) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (363180) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=9133
IDLE: esp_get_free_heap_size 182180 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 180316 esp_get_minimum_free_heap_size : 174452 Bytes
W (377730) transport_base: Poll timeout or error, errno=Success, fd=54, timeout_ms=10000
E (377730) mqtt_client: Writing didn't complete in specified timeout: errno=0
I (377730) mqtt_example: MQTT_EVENT_DISCONNECTED
W (377740) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182284 esp_get_minimum_free_heap_size : 174452 Bytes
I (387740) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 182116 esp_get_minimum_free_heap_size : 174452 Bytes
I (388570) mqtt_example: MQTT_EVENT_CONNECTED
I (388580) mqtt_example: sent publish successful, msg_id=19879
I (388580) mqtt_example: sent subscribe successful, msg_id=21260
I (388580) mqtt_example: sent subscribe successful, msg_id=14956
I (388590) mqtt_example: sent unsubscribe successful, msg_id=1159
I (388980) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=19879
E (389400) transport_base: tcp_read error, errno=Socket is not connected
E (389400) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (389410) mqtt_example: MQTT_EVENT_ERROR
E (389410) mqtt_example: Last error reported from esp-tls: 0x8008
E (389420) mqtt_example: Last error captured as transport's socket errno: 0x80
I (389430) mqtt_example: Last errno string (Socket is not connected)
E (389430) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (389440) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 181748 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 182080 esp_get_minimum_free_heap_size : 174452 Bytes
I (399450) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 181400 esp_get_minimum_free_heap_size : 174452 Bytes
I (400240) mqtt_example: MQTT_EVENT_CONNECTED
I (400250) mqtt_example: sent publish successful, msg_id=36514
I (400250) mqtt_example: sent subscribe successful, msg_id=48519
I (400250) mqtt_example: sent subscribe successful, msg_id=33374
I (400260) mqtt_example: sent unsubscribe successful, msg_id=28929
I (400650) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=36514
IDLE: esp_get_free_heap_size 175216 esp_get_minimum_free_heap_size : 174452 Bytes
IDLE: esp_get_free_heap_size 175328 esp_get_minimum_free_heap_size : 174452 Bytes
W (414710) transport_base: Poll timeout or error, errno=Connection already in progress, fd=54, timeout_ms=10000
E (414710) mqtt_client: Writing didn't complete in specified timeout: errno=119
E (414710) mqtt_client: Error to resend data
I (414720) mqtt_example: MQTT_EVENT_DISCONNECTED
W (414720) mqtt_client: Publish: Losing qos0 data when client not connected
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
IDLE: esp_get_free_heap_size 175648 esp_get_minimum_free_heap_size : 173288 Bytes
I (429720) mqtt_example: Other event id:7
I (430360) mqtt_example: MQTT_EVENT_CONNECTED
I (430370) mqtt_example: sent publish successful, msg_id=28328
I (430370) mqtt_example: sent subscribe successful, msg_id=62581
I (430370) mqtt_example: sent subscribe successful, msg_id=61741
I (430380) mqtt_example: sent unsubscribe successful, msg_id=1998
IDLE: esp_get_free_heap_size 168720 esp_get_minimum_free_heap_size : 168720 Bytes
I (430750) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=28328
E (431070) transport_base: tcp_read error, errno=Socket is not connected
E (431070) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=128
I (431070) mqtt_example: MQTT_EVENT_ERROR
E (431080) mqtt_example: Last error reported from esp-tls: 0x8008
E (431090) mqtt_example: Last error captured as transport's socket errno: 0x80
I (431090) mqtt_example: Last errno string (Socket is not connected)
E (431100) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -1
I (431110) mqtt_example: MQTT_EVENT_DISCONNECTED
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175812 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
IDLE: esp_get_free_heap_size 175856 esp_get_minimum_free_heap_size : 168532 Bytes
I (446110) mqtt_example: Other event id:7
IDLE: esp_get_free_heap_size 173660 esp_get_minimum_free_heap_size : 168532 Bytes
I (446750) mqtt_example: MQTT_EVENT_CONNECTED
I (446760) mqtt_example: sent publish successful, msg_id=23965
I (446760) mqtt_example: sent subscribe successful, msg_id=23596
I (446760) mqtt_example: sent subscribe successful, msg_id=7799
I (446770) mqtt_example: sent unsubscribe successful, msg_id=33810
I (447160) mqtt_example: MQTT_EVENT_PUBLISHED, msg_id=23965
I (447860) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=23596
I (447860) mqtt_example: sent publish successful, msg_id=0
I (447870) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=7799
I (447870) mqtt_example: sent publish successful, msg_id=0
I (447880) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=33810
I (448170) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=62581
I (448170) mqtt_example: sent publish successful, msg_id=0
I (448600) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (448610) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
IDLE: esp_get_free_heap_size 169288 esp_get_minimum_free_heap_size : 166804 Bytes
I (448990) mqtt_example: MQTT_EVENT_SUBSCRIBED, msg_id=61741
I (448990) mqtt_example: sent publish successful, msg_id=0
I (449000) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (449810) mqtt_example: MQTT_EVENT_DATA
TOPIC=/topic/qos0
DATA=data
I (450220) mqtt_example: MQTT_EVENT_UNSUBSCRIBED, msg_id=1998
IDLE: esp_get_free_heap_size 172496 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
IDLE: esp_get_free_heap_size 171280 esp_get_minimum_free_heap_size : 165588 Bytes
使用tcp mqtt demo 修改测试也会有内存越来越小的情况!
Who is online
Users browsing this forum: Baidu [Spider] and 165 guests