I am writing a code which can show nearby friends whose bluetooth devices (phones) are switched on. My codes uses the devices addresses of the users to keep track of their presence but I need to know whether this figure is unique or not. If not how can I generate a unique id for each phone, let’s say for example address + friendly name (which unfortunately is not unique).
Thanks
So two phones can’t have the same Bluetooth address due to the way the mac addresses are assigned. Bluetooth addresses use the same MAC-48 identifier format. Read this page for details.