![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
esp32
文章平均质量分 50
houyawei_NO1
这个作者很懒,什么都没留下…
展开
-
esp-idf手动设置系统时间
官方提到使用ntp同步时间,后自动设置了时间。System Time - ESP32 - — ESP-IDF 编程指南 v4.3.1 文档https://docs.espressif.com/projects/esp-idf/zh_CN/v4.3.1/esp32/api-reference/system/system_time.html使用了函数settimeofday().To set the current time, you can use the POSIX functionssettim.原创 2021-12-10 10:30:44 · 2853 阅读 · 0 评论 -
Arduino(c) 16进制转字符串
16进制转字符串String hexToAscii( String hex ){ uint16_t len = hex.length(); String ascii = ""; for ( uint16_t i = 0; i < len; i += 2 ) ascii += (char)strtol( hex.substring( i, i+2 ).c_str(), NULL, 16 ); return ascii;}//houyawei10转16进原创 2021-11-23 14:51:02 · 6986 阅读 · 0 评论 -
esp32 md5加密算法的使用Arduino/esp-idf
之前不太了解arduino,使用第三方md5库加密。https://github.com/tzikis/ArduinoMD5https://github.com/tzikis/ArduinoMD5#include "MD5.h"//houyawei 2021.10.29unsigned char* hash = MD5::make_hash((char *)md.c_str());char *test = MD5::make_digest(hash, 16);printf("test:原创 2021-10-29 16:58:24 · 3276 阅读 · 1 评论 -
linux串口权限问题
在 Linux 中添加用户到dialout当前登录用户应当可以通过 USB 对串口进行读写操作。在多数 Linux 版本中,您都可以通过以下命令,将用户添加到dialout组,从而获许读写权限:sudo usermod -a -G dialout $USER在 Arch Linux 中,需要通过以下命令将用户添加到uucp组中:sudo usermod -a -G uucp $USER请重新登录,确保串口读写权限生效。 ...原创 2021-09-17 10:02:07 · 1025 阅读 · 0 评论 -
ESP32中断看门狗,esp32无法重启,interrupt watchdog,Task Watchdog Timer(中断看门狗,任务看门狗的使用)
因为原本是在github提的issues,中文机翻的英文,问题已解决,就懒得翻译回来了。有的时候esp32看门狗生效后,设备不能重启,卡死在启动引导程序部分。这是个大问题,很难用于生产线使用。遇到的问题:Sometimes after the watchdog takes effect, esp32 cannot start the program(Unable to restart) · Issue #5665 · espressif/arduino-esp32 · GitHubhttps://g原创 2021-09-16 09:45:08 · 5538 阅读 · 0 评论 -
esp32/esp8266自动重连wifi
WiFi.setAutoConnect(true)setAutoConnect函数可以激活ESP8266模块的自动连接模式。模式激活后,ESP8266模块会在通电后自动连接到最近连接过的WiFi接入点。http://www.taichi-maker.com/homepage/iot-development/iot-dev-reference/esp8266-c-plus-plus-reference/esp8266wifista/setautoconnect/WiFi.setAutoRecon原创 2021-09-08 09:55:18 · 6064 阅读 · 0 评论 -
esp32设置hostname主机名
WiFi.disconnect(); WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE); // This is a MUST! if (!WiFi.setHostname("0a5b1d0dff")) { Serial.println("Hostname failed to configure"); } WiFi.begin(ssid, password);WiFi.config(INADDR_NONE, INADDR...原创 2021-09-07 15:40:21 · 2833 阅读 · 0 评论