Created
August 13, 2020 01:26
-
-
Save clive520/20aae3d83122d0f798f63e7dddf6cc96 to your computer and use it in GitHub Desktop.
WIFI01_讀出機器的MAC_ESP32 NodeMCU 32S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "WiFi.h" | |
void setup(){ | |
Serial.begin(9600); | |
WiFi.mode(WIFI_MODE_STA); | |
Serial.println(""); | |
Serial.print("Mac Address :"); | |
Serial.println(WiFi.macAddress()); //WiFi.macAddress()讀出機器的MAC | |
} | |
void loop(){} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment