Thanks for your responce, but this is
Uncaught Error: Field or method "name" does not already exist, and can't create it on Number
at line 5 col 14
if (dev.name == "DiamondBeacon") found = true;
and when I use the simple example no name is displayed.. I want to scan with id(Mac address).