main主程序中如果没有 while(1)是否会退出应用,还是说可以使用xTaskCreate调度就可以不使用while(1).
看到很多示例只有xTaskCreate创建任务,没有执行 vTaskStartScheduler 运行任务,这是为什么,vTaskStartScheduler 可以省略的吗?
Search found 9 matches
- Sun Dec 26, 2021 9:50 am
- Forum: ESP-IDF 中文讨论版
- Topic: main主程序中一定要while(1)
- Replies: 2
- Views: 8320
- Sun Dec 26, 2021 6:13 am
- Forum: ESP-IDF 中文讨论版
- Topic: smartconfig配网失败
- Replies: 1
- Views: 6707
smartconfig配网失败
使用用例中的smartconfig进行配网,打开esptouch app 录入密码,采用 广播方式。
硬件日志:
I (652) wifi_init: tcp tx win: 5744
I (652) wifi_init: tcp rx win: 5744
I (662) wifi_init: tcp mss: 1440
I (662) wifi_init: WiFi IRAM OP enabled
I (672) wifi_init: WiFi RX IRAM OP enabled
I (672) phy_init: phy_version 4670,719f9f6,Feb 18 2021 ...
硬件日志:
I (652) wifi_init: tcp tx win: 5744
I (652) wifi_init: tcp rx win: 5744
I (662) wifi_init: tcp mss: 1440
I (662) wifi_init: WiFi IRAM OP enabled
I (672) wifi_init: WiFi RX IRAM OP enabled
I (672) phy_init: phy_version 4670,719f9f6,Feb 18 2021 ...
- Tue Dec 21, 2021 2:48 pm
- Forum: ESP-IDF 中文讨论版
- Topic: mqtt DNS lookup failed err=202 res=0x0
- Replies: 7
- Views: 20398
- Tue Dec 21, 2021 1:30 pm
- Forum: ESP-IDF 中文讨论版
- Topic: mqtt DNS lookup failed err=202 res=0x0
- Replies: 7
- Views: 20398
Re: mqtt DNS lookup failed err=202 res=0x0
都是在同一局域网内,同一台路由器,ip与端口使用其他mqtt软件正常连接。
- Mon Dec 20, 2021 1:33 pm
- Forum: ESP-IDF 中文讨论版
- Topic: mqtt DNS lookup failed err=202 res=0x0
- Replies: 7
- Views: 20398
Re: mqtt DNS lookup failed err=202 res=0x0
修改了后报:mqtt_cfg 里把 host 改成 uri
E (5807) TRANS_TCP: [sock=54] connect() error: Host is unreachable
E (5807) MQTT_CLIENT: Error transport connect
- Sun Dec 19, 2021 2:17 pm
- Forum: ESP-IDF 中文讨论版
- Topic: mqtt DNS lookup failed err=202 res=0x0
- Replies: 7
- Views: 20398
mqtt DNS lookup failed err=202 res=0x0
nvs_flash_init();
tcpip_adapter_init();
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
ESP_ERROR_CHECK( esp_wifi_set_mode ...
- Sun Dec 19, 2021 10:15 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp32 mqtt连接
- Replies: 1
- Views: 3769
esp32 mqtt连接
使用mqtt协议开发,需要包含那些文件头。
- Wed Dec 15, 2021 11:59 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp-idf安装
- Replies: 4
- Views: 10538
Re: esp-idf安装
编译是正常的,每次使用都要执行export.bat,否则找不到idf.py
- Tue Dec 14, 2021 1:44 pm
- Forum: ESP-IDF 中文讨论版
- Topic: esp-idf安装
- Replies: 4
- Views: 10538
esp-idf安装
在环境搭建中有对系统生成的二个目录有疑问,我是使用离线安装包安装的。
安装在%userprofile%下,也就是 C:\Users\Administrator
安装的主目录是 C:\Users\Administrator\Desktop\esp-idf
1、但系统中会生成 C:\Users\Administrator\.espressif 这个目录,与主目录都有 tools,这二个目录有什么区别。下次如果升级,是直接修改主目录吗?
2、有了 C:\Users\Administrator\Desktop\esp-idf 目录,为什么还要从 github中下载 esp-idf ...
安装在%userprofile%下,也就是 C:\Users\Administrator
安装的主目录是 C:\Users\Administrator\Desktop\esp-idf
1、但系统中会生成 C:\Users\Administrator\.espressif 这个目录,与主目录都有 tools,这二个目录有什么区别。下次如果升级,是直接修改主目录吗?
2、有了 C:\Users\Administrator\Desktop\esp-idf 目录,为什么还要从 github中下载 esp-idf ...