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
Post a Comment