Attach a file to a virtual beacon using Android Beacon Library -
i interested in using android beacon library seems can project. want create virtual beacons using smartphones act if beacon attached file, listening smartphone access text file when detects virtual beacon.
i have seen there different ways of doing using library: there data fields (long) encode url file , there beacon data factory seems used information server there few documentation last option , not know how using it.
so questions are: should use data fields or factory purpose? in case of recommend using factory, how works notifier? have example code this?
thank much
the main issue use case limited number of bytes available in standard bluetooth le beacon advertisements transporting data. regardless of beacon format use (ibeacon, altbeacon, eddystone-uid, eddystone-url, etc.), limited a maximum of 23 usable bytes of data space in advertisement. practical number may smaller, because must use bytes identify advertisement type, , whether your beacon vs. 1 belonging else.
a few points on specific formats:
altbeacon: "long" data fields mentioned in question, cannot used more single byte in common beacon formats. altbeacon format has 1 byte data field. fact java data type long not change 1 byte available in beacon format.
eddystone-url: beacon format designed transport urls of 17 bytes in length, , includes special expansion byte codes make them shorter. can use url compressor make url fit in space.
the datafactory describe in question used hook in third-party cloud data store attache key/value pairs beacon. known implementation using feature paid proximitykit service radiusnetworks.
Comments
Post a Comment