Getting MAC-address or alike in JS
Posted: 03 Oct 2016 17:28
How to get the MAC-address of Raspi in Javascript?
Another device-related unique identifier would also do...
Another device-related unique identifier would also do...
Code: Select all
host = system("hostname -I");
Code: Select all
var mac = system( 'cat /sys/class/net/eth0/address' )[ 1 ].trim();