command line
ifconfig
Python code
MAC_Eth0 = open('/sys/class/net/eth0/address').read()
print("MAC_Eth0 = " + str(MAC_Eth0))
MAC_Wlan0 = open('/sys/class/net/wlan0/address').read()
print("MAC_wlan0 = " + str(MAC_Wlan0))
หากสนใจสามารถลงเรียนได้ที่
/ 1466269593413882
Contact Us
Website: https://tesracademy.wordpress.com/
Facebook : / thaiembedded
Youtube Channel : / tesrchannel
Email : [email protected]
line id : @ion1900z
Tel. 090-465-6519
#TESRAcademy
#TESR
#ESP8266
#NodeMCU
#Arduino
#RaspberryPi
#CourseOnline
#Robot
#Microcontroller
#embedded
#Tutor