Method | Description | |
---|---|---|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor. The Dispose method leaves the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor was occupying. |
|
Enqueue ( String data ) : void |
Enqueue the specified serial command data.
|
|
SerialCommandQueueProcessor ( |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor class with the serial port to queue commands for. This overload uses the default delay value.
|
|
SerialCommandQueueProcessor ( |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor class with the serial port to queue commands for and the delay between processing of commands.
|
|
Start ( ) : void |
Starts processing the command queue.
|
|
Stop ( ) : void |
Stops processing the command queue.
|
Method | Description | |
---|---|---|
ProcessQueue ( ) : void |
Processes the queue.
|
public Enqueue ( String data ) : void | ||
data | String | /// The command data to enqueue. /// |
return | void |
public SerialCommandQueueProcessor ( |
||
serial | /// The serial port to queue commands for. /// | |
return | System |
public SerialCommandQueueProcessor ( |
||
serial | /// The serial port to queue commands for. /// | |
delay | /// The amount of time (in milliseconds) to delay between commands. /// | |
return | System |