ANN: MAC address library
Posted: Wed Feb 09, 2022 7:07 pm
Here's a library that uses the api at maclookup.app to return information about Media Access Control addresses.
These are the "unique" addresses assigned to hardware components so that routers can direct packets to the proper devices.
There's a function to return the local addresses on your computer and various functions to return information about specified MAC addresses.
There's a simple stack that illustrates how to use the functions as well.
Hope someone finds this useful.
These are the "unique" addresses assigned to hardware components so that routers can direct packets to the proper devices.
There's a function to return the local addresses on your computer and various functions to return information about specified MAC addresses.
There's a simple stack that illustrates how to use the functions as well.
Hope someone finds this useful.
Code: Select all
# list local MAC addresses
on mouseUp pMouseButton
library stack "libMacLookup"
put libMACLookup.localMACAddress() into msg
stop using stack "libMacLookup"
end mouseUp
Code: Select all
# return company address from MAC address
on mouseUp pMouseButton
local tAddress
start using stack "libMacLookup"
if field 1 is not empty then
try
put field 1 into tAddress
put libMACLookup.companyAddress(tAddress) into field 2
catch e
answer e
end try
end if
stop using stack "libMacLookup"
end mouseUp