问题
We have two overdrive Node
devices to track the beacon location. Our idea is to convert the mobile device to the virtual beacon and track the current location of the virtual device?
we are using the code:(Android Beacon Library
).
As per the code, we need to pass three params
, UUID
, Minor
, and Major
to create a beacon layout.
But our assumption is like any number of virtual beacon needed to connect to the BLE
node device. It not possible to configure the fixed minor id on our mobile app, since that virtual beacon may be required to connect to another node as well.
How to handle this. we are also not clear in this flow.
We are using the following code:
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);
来源:https://stackoverflow.com/questions/58796573/multiple-virtual-beacon-communication-to-multiple-transmitting-nodes-ble