ESP_LOGE(TAG, "Unable to create socket: errno %d", errno); break; } ESP_LOGI(TAG, "Socket created"); int err = bind(listen_sock, (struct sockaddr *)&destAddr, sizeof(destAddr)); if (err != 0) { ESP_LOGE(TAG, "S
if (ret == ESP_FAIL) { ESP_LOGE("TAG", "无法挂载或格式化文件系统"); } else if (ret == ESP_ERR_NOT_FOUND) { ESP_LOGE("TAG", "未找到 SPIFFS 分区"); } else { ESP_LOGE("TAG", "无法初始化 SPIFFS (%s)", esp_err_to_name(ret)); } return; } // 写入文件 FILE* f = fo...
staticconstchar* TAG ="MyModule"; 然后使用一条日志宏来产生输出,比如: ESP_LOGW(TAG,"Baud rate error %.1f%%. Requestd: %d baud, actual: %d", error *100, baud_req, baud_real); 以下是一些不同复杂度的日志宏: ESP_LOGE - error(lowest) ESP_LOGW - warning ESP_LOGI -info ESP_LOGD ...
caseESP_GAP_BLE_PASSKEY_NOTIF_EVT:///the app will receive this evt when the IO has Output capability and the peer device IO has Input capability.///show the passkey number to the user to input it in the peer device.ESP_LOGE(GATTS_TABLE_TAG,"The passkey Notify number:%d", param->ble...
ESP_LOGE("BOOTH_TASK", "新疆饭店开张了"); while(1) { vTaskDelay(5000/portTICK_PERIOD_MS); char * event_data = "这次肥肉比较多,不好意思哦"; ESP_LOGE("新疆饭店", "烤包子好了"); esp_event_post_to(night_market_loop_handler, XINJIANG_BASE, 烤包子, event_data,strlen(event_data)+...
secure_version) == false) { ESP_LOGE(TAG, "This a new app can not be downloaded due to a secure version is lower than stored in efuse."); http_cleanup(client); task_fatal_error(); } image_header_was_checked = true; esp_ota_begin(update_partition, OTA_SIZE_UNKNOWN, &update_...
ESP_LOGE(TAG, "Unable to allocate memory for bundle"); return ESP_ERR_NO_MEM; } const uint8_t* cur_crt; cur_crt = x509_bundle + BUNDLE_HEADER_OFFSET; ESP_LOGW(TAG, "cert num:%d", s_crt_bundle.num_certs); // 根据个数一个一个的来偏移获取每个证书的内容 ...
ESP_LOGE(TAG, "SCCB_Write Failed addr:0x%02x, reg:0x%02x, data:0x%02x, ret:%d", slv_addr, reg, data, ret); } return ret == ESP_OK ? 0 : -1; } /* void href_pclk_Y2_Y9_Init(void) { pinMode(PWDN_GPIO_NUM , OUTPUT); ...
在查看example中的sample code时,esp_loge报错,请问是怎么回事? esp_log.pngYou do not have the required permissions to view the files attached to this post.morris Espressif staff Posts: 290 Joined: Wed Sep 05, 2018 6:23 am Re: ESP_LOGE 报错...
{ESP_LOGE(TAG,"Unable to create socket: errno %d",errno);break;}ESP_LOGI(TAG,"Socket created, connecting to %s:%d",host_ip,PORT);int err=connect(sock,(struct sockaddr*)&dest_addr,sizeof(struct sockaddr_in6));//建立连接if(err!=0){ESP_LOGE(TAG,"Socket unable to connect: errno %d...