Logic Machine Forum
Get device MAC address - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Get device MAC address (/showthread.php?tid=3525)



Get device MAC address - khalil - 25.08.2021

Hello 
is it possible to get the controller MAC address via a script.
regards,


RE: Get device MAC address - Daniel - 25.08.2021

Code:
mac = io.readfile('/sys/class/net/eth0/address'):trim()



RE: Get device MAC address - khalil - 25.08.2021

(25.08.2021, 09:12)Daniel. Wrote:
Code:
mac = io.readfile('/sys/class/net/eth0/address'):trim()

thank you Daniel