Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to transmit additional data via BeaconTransmitter? #4

Open
fAns1k opened this issue Oct 6, 2016 · 0 comments
Open

How to transmit additional data via BeaconTransmitter? #4

fAns1k opened this issue Oct 6, 2016 · 0 comments

Comments

@fAns1k
Copy link

fAns1k commented Oct 6, 2016

i use your sample project to test beacon transmission, but i couldn't send any additional data.
i tried to do this like

Beacon beacon = new Beacon.Builder()
                    .setId1("2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6")
                    .setId2("1")
                    .setId3("2")
                    .setManufacturer(0x0000) // Choose a number of 0x00ff or less as some devices cannot detect beacons with a manufacturer code > 0x00ff
                    .setTxPower(-59)
                    .setDataFields(Arrays.asList(new Long[]{1231231238L, 100500L}))
                    .build();

but in the other device i got just 6 from dataFields array. Devices id1 were the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant