Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #227 from schilit/update-test
Browse files Browse the repository at this point in the history
Scan for Test Service
  • Loading branch information
schilit committed Apr 9, 2015
2 parents 3dde072 + d46ddd9 commit 9d045ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class UriBeacon {
private static final byte[] URI_SERVICE_16_BIT_UUID_BYTES = {(byte) 0xd8, (byte) 0xfe};

//TODO: Add comments
public static final ParcelUuid TEST_SERVICE_UUID =
ParcelUuid.fromString("0000FEAA-0000-1000-8000-00805F9B34FB");
private static final byte[] TEST_SERVICE_16_BIT_UUID_BYTES = { (byte) 0xaa, (byte) 0xfe};
private static final byte TEST_URL_FRAME_TYPE = 0x10;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ protected void onResume() {
if (mIsConfig) {
mScanFilterUuids = configServices;
} else if (filterUriBeacon) {
mScanFilterUuids = new ParcelUuid[]{UriBeacon.URI_SERVICE_UUID};
mScanFilterUuids = new ParcelUuid[]{
UriBeacon.URI_SERVICE_UUID, UriBeacon.TEST_SERVICE_UUID};
} else {
mScanFilterUuids = null;
}
Expand Down

0 comments on commit 9d045ad

Please sign in to comment.