if (esp_err == ESP_OK) { ESP_LOGI(tag, "configured successfully"); } else { ESP_LOGE(tag, " configuration failed. code: 0x%.2X", espRc); } i2c_cmd_link_delete(cmd); } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. ...
*/ ESP_LOGI(TAG, "ALL_SYNC_BITS was set Value"); vTaskDelay(5000/portTICK_PERIOD_MS); printf("\n\r"); } } /** * @brief 创建函数初始化 * @param NULL * @return NULL */ void EventGroupSync_Init(void) { EventGroupHandle_t EventGroupHandle = NULL; EventGroupHandle = xEventGrou...
ESP_LOGI(MAIN_TAG,"Started on CPU%d", (int)xPortGetCoreID());#if!CONFIG_FREERTOS_UNICORE//Wait for FreeRTOS initialization to finish on other core, before replacing its startup stackesp_register_freertos_idle_hook_for_cpu(other_cpu_startup_idle_hook_cb, !xPortGetCoreID());while(!s_...
1. **检查电源稳定性**:不稳定的电源可能导致模块不稳定,从而导致无限重启。确保您的电源供应稳定且...
2. **未正确设置Mesh配置**:在将WiFi STA配置传递给Mesh网络时,确保正确设置Mesh配置。使用`esp_...
esp_mqtt_client_publish(client, '/test', "find", 0, 1, 0); //这行有问题,执行后重启 printf("send ok\n"); }else{ printf("no client"); } // ESP_LOGI(TAG, "sent publish successful, msg_id=%d", msg_id); } }else{ //低电平 按下按键 ...
ESP_LOGI(TAG,"restore all wifi set..."); esp_wifi_restore(); }voidbutton_start(){//初始化按键button_config_tcfg = { .type = BUTTON_TYPE_GPIO, .gpio_button_config = { .gpio_num = IO_SWITCH_BUTTON, .active_level =0, },
ESP_LOGI(TAG, "Received write request via : %s", esp_rmaker_device_cb_src_to_str(ctx->src)); } /* Check if the write is on the "Trigger" parameter. We aren't really checking true/false as that * is not much of a concern in this context. But you can add checks on the valu...
ESP_LOGI(MAIN_TAG, "free Heap:%d", (int)esp_get_free_heap_size()); 可以看到运行了16分钟堆内存基本不变 I (82202) MAIN: free Heap:130040 I (83198) MAIN: free Heap:130040 I (84198) MAIN: free Heap:130044 I (85198) MAIN: free Heap:130044 I (86190) MAIN: free Heap:130040 I ...