java - android bluetoothadapter.startLeScan, filter by UUID -


i want scan ble device startlescan(uuid[] serviceuuids, lescancallback callback) method, have uuid, it's 16-bits value, example, 00000000-0000-1000-8000-00805f9b34fb.

how can use uuid in startlescan method, write this,

uuid[] uuid = new uuid[1]; uuid[0] = uuid.fromstring("00000000-0000-1000-8000-00805f9b34fb"); mbluetoothadapter.startlescan(uuid, mlescancallback); 

but can scan nothing. how can resolve problem.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -