dmzdmz666666 发表于 2021-7-8 17:39

【ESP32-C3-DevKitM-1】ESP32-C3的WIFI+SNTP时间获取

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><b><span style="font-size:14.0000pt"><span style="font-family:黑体"><span style="font-weight:bold">WIFi的评测</span></span></span></b></span></span></p>

<p><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><span style="font-weight:normal">ESP32-C3支持2.4GHZ的WiFi,WiFi的性能还是很强的,能力有限,无法一一测试如下图</span></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify"></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">接下来我将用</font>WiFi<font face="宋体">联网获取</font><font face="Calibri">SNTP</font><font face="宋体">时间</font></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">首先在例程中找到</font>sntp<font face="宋体">例程,然后打开</font><font face="Calibri">sdkconfig</font><font face="宋体">配置文件,将要连接的</font><font face="Calibri">WiFi</font><font face="宋体">的</font><font face="Calibri">SSID</font><font face="宋体">和</font><font face="Calibri">Password</font><font face="宋体">填写好,如下图</font></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify"></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">然后烧录程序,实际效果如下图</font></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">先进行</font>WiFi<font face="宋体">初始化</font></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify"></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">连上</font>WiFi<font face="宋体">后会显示一些基本信息</font></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify"></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">最后等待片刻后会显示正确的</font>SNTP<font face="宋体">时间</font></span></span></span></span></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify"></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="text-align:justify">&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

Jacktang 发表于 2021-7-9 07:36

<p>想看楼主的下一步评测</p>

dql2016 发表于 2021-7-9 13:44

<p>这是什么IDE?</p>

freebsder 发表于 2021-7-9 21:49

<p>cmake,,,复杂呀。</p>
页: [1]
查看完整版本: 【ESP32-C3-DevKitM-1】ESP32-C3的WIFI+SNTP时间获取