BleQueue
public class BleQueue extends Object
Constructors
Name | Description |
---|---|
public BleQueue()
|
Methods
enqueue
public synchronized boolean enqueue(Command command)
Enqueues aCommandfor execution.
Parameters
Name | Description |
---|---|
Command command
|
the command to execute |
ReturnValue
Name | Description |
---|---|
boolean
|
trueif the command was appended to the queue |
completedCommand
public synchronized void completedCommand(Type type)
Removes a pendingCommandfrom the queue and executes the next
Parameters
Name | Description |
---|---|
Type type
|
the Command.Typeof command just completed. Used for logging purposes. |
ReturnValue
Name | Description |
---|---|
void
|
Queue for executing BLE commands synchronously.