Broadcast different Eddystone packets in Android -


i broadcast multiple eddystone packets in android. read cannot done simultaneously however, have create timer , broadcast multiple packets. want know if there restrictions how many unique eddystone packets can broadcast? can broadcast different , multiple packets in 1 second?

some android devices do allow sending multiple advertisements simultaneously. depends on chipset on phone. there no way know in advance, can repeatedly attempt start advertising different beacon identifier set until error message. here code android beacon library:

beacon beacon = new beacon.builder()     .setid1("2f234454-cf6d-4a0f-adf2-f4911ba9ffa6")     .setid2("1")     .setid3("2")     .setmanufacturer(0x0118)     .settxpower(-59)     .setdatafields(arrays.aslist(new long[] {0l}))     .build(); beaconparser beaconparser = new beaconparser()     .setbeaconlayout("m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25"); beacontransmitter beacontransmitter = new beacontransmitter(getapplicationcontext(), beaconparser);  beacontransmitter.startadvertising(beacon beacon, new advertisecallback() {   public void onstartfailure(int errorcode) {       // called when failed   }   public void   onstartsuccess(advertisesettings settingsineffect) {   }  }); 

it possible use timer simulate multiple beacons changing identifiers every 100ms or so. because transmitter have same mac address each beacon identifier, different types of receivers handle differently. ios track them multiple beacons, , devices using android beacon library well.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -