<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ESP32 &#8211; Antonio</title>
	<atom:link href="/tag/esp32/feed/" rel="self" type="application/rss+xml" />
	<link>https://nstar.ltd</link>
	<description></description>
	<lastBuildDate>Sat, 21 Jun 2025 19:46:23 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>ESP32-OTA</title>
		<link>/esp32-ota/</link>
					<comments>/esp32-ota/#respond</comments>
		
		<dc:creator><![CDATA[Antonio]]></dc:creator>
		<pubDate>Sat, 21 Jun 2025 19:46:23 +0000</pubDate>
				<category><![CDATA[笔记]]></category>
		<category><![CDATA[ESP32]]></category>
		<category><![CDATA[单片机]]></category>
		<guid isPermaLink="false">http://antonioz.asia/?p=246</guid>

					<description><![CDATA[使用ESP-IDF开发，以例程hello_world、simple_ota_example为例。 编译hell [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>使用ESP-IDF开发，以例程hello_world、simple_ota_example为例。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>编译hello_world生成hello_world.bin文件备用，作为OTA升级文件</p>



<p>新建工程，采用示例simple_ota_example：</p>



<p>在SDK设置界面修改以下参数：</p>



<pre class="wp-block-code"><code>CONFIG_EXAMPLE_FIRMWARE_UPGRADE_URL .bin文件url(注意使用http://)
CONFIG_EXAMPLE_WIFI_SSID            WIFI名称
CONFIG_EXAMPLE_WIFI_PASSWORD        WIFI密码
CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS 配置是否采用HTTPS，HTTPS需要LTS证书（暂不采用）</code></pre>



<p>修改完成后，构建工程</p>



<p>在cmd命令行（或anaconda命令行中）中输入</p>



<pre class="wp-block-code"><code>python -m http.server 8070</code></pre>



<p>打开HTTP服务</p>



<p>烧录程序到ESP32，观察串口输出，结果为hello_world例程输出结果。</p>
]]></content:encoded>
					
					<wfw:commentRss>/esp32-ota/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
