return 1;
}
+ uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_32BIT);
+ uint32_t stack_size = uxTaskGetStackHighWaterMark(NULL);
+ ESP_LOGI(TAG, "min heap size: %u stack size: %u", heap_size, stack_size);
+
return 0;
}
meshlink_close(mesh);
mesh = NULL;
ESP_LOGI(TAG, "Closed mesh");
+ uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_32BIT);
+ uint32_t stack_size = uxTaskGetStackHighWaterMark(NULL);
+ ESP_LOGI(TAG, "min heap size: %u stack size: %u", heap_size, stack_size);
return 0;
}
static void mlt_main(void) {
+ uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_32BIT);
+ uint32_t stack_size = uxTaskGetStackHighWaterMark(NULL);
+ ESP_LOGI(TAG, "min heap size: %u stack size: %u", heap_size, stack_size);
+
meshlink_set_log_cb(NULL, MESHLINK_DEBUG, mlt_log);
ESP_LOGI(TAG, "Starting MeshLink-tiny instance...");
void app_main(void) {
+ uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_32BIT);
+ uint32_t stack_size = uxTaskGetStackHighWaterMark(NULL);
+ printf("min heap size: %u stack size: %u\n", heap_size, stack_size);
+
/* Print chip information */
esp_chip_info_t chip_info;
esp_chip_info(&chip_info);