printf("\n\n-------------------------------- Get Systrm Info------------------------------------------\n");
//获取IDF版本
printf(" SDK version:%s\n", esp_get_idf_version());
//获取芯片可用内存
printf(" esp_get_free_heap_size : %d \n", esp_get_free_heap_size());
//获取从未使用过的最小内存
printf(" esp_get_minimum_free_heap_size : %d \n", esp_get_minimum_free_heap_size());
//获取芯片的内存分布,返回值具体见结构体 flash_size_map
printf(" system_get_flash_size_map(): %d \n", system_get_flash_size_map());
//获取mac地址(station模式)
uint8_t mac[6];
esp_read_mac(mac, ESP_MAC_WIFI_STA);
printf("esp_read_mac(): %02x:%02x:%02x:%02x:%02x:%02x \n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
printf("--------------------------------------------------------------------------\n\n");
网友评论