Wait for a packet to arrive.
Namespace: PalmSens.Comm
Assembly: PalmSens (in PalmSens.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Protected Function WaitForPacket( _ ByVal cmd As Char, _ ByVal len As Integer _ ) As String |
| C# |
|---|
| protected string WaitForPacket( char cmd, int len ) |
| C++ |
|---|
| protected: String WaitForPacket( wchar_t cmd, int len ) sealed |
| J# |
|---|
| protected string WaitForPacket( char cmd, int len ) |
| JScript |
|---|
| protected
function WaitForPacket( cmd : char, len : int ) : String |
Parameters
- cmd
- packet to wait for
- len
- length
Return Value
null if a * was received, data otherwise
Remarks
Will raise DataNotYetReceived if necessary.