使用 Arduino IDE 开发,如何读取 ESP32 出厂自带的 Wi-Fi 的 MAC 地址?

ESP32    查看(3)   回答(1)
2024-08-20 15:20:12
admin
使用 Arduino IDE 开发,如何读取 ESP32 出厂自带的 Wi-Fi 的 MAC 地址?
如题
2024-08-20 15:22:12
老张
esp32-arduino 开发框架:https://github.com/espressif/arduino-esp32
使用 WiFi.macAddress() 来获取 ESP32 的 Wi-Fi 的 MAC 地址;
Serial.println(WiFi.macAddress());`
参考链接:https://github.com/espressif/arduino-esp32/blob/a59eafbc9dfa3ce818c110f996eebf68d755be24/libraries/WiFi/examples/WiFiClientStaticIP/WiFiClientStaticIP.ino
回复:
请登录后发表回复
最新文章
最新资源