dev.id contains the mac address as a string, so just change:
dev.id
var uuid = new Uint8Array(dev.manufacturerData,2,16);
to
var uuid = dev.id .substr(0,17).split(":").map(x=>parseInt(x,16))
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
dev.id
contains the mac address as a string, so just change:to