AltBeacon / altbeacon-transmitter-android

A transmitter app requiring android L
67 stars 32 forks source link

How to transmit additional data via BeaconTransmitter? #4

Open fAns1k opened 7 years ago

fAns1k commented 7 years ago

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.