public class BeaconOta
extends java.lang.Object
Note that if you have an open connection (BeaconConnection
)
to beacon, you need to disconnect first. Having other open connection to the beacon will prevent
establishing a new connection to the beacon.
If beacon update fails, it might be good idea to restart Bluetooth on the device.
There is utility for doing that Utils.restartBluetooth(Context, Utils.RestartCompletedListener)
.
Modifier and Type | Class and Description |
---|---|
static interface |
BeaconOta.Callback
Callback to indicate status of beacon's update.
|
Constructor and Description |
---|
BeaconOta(android.content.Context context,
MacAddress macAddress,
BeaconOta.Callback callback)
Creates a new beacon update object.
|
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts update procedure.
|
public BeaconOta(android.content.Context context, MacAddress macAddress, BeaconOta.Callback callback)
context
- Android context.macAddress
- MAC address of a beacon to perform update on.callback
- Callback to indicate status of update.