BlueLibs documentation

DUNConnection Members

DUNConnection overview

Public Static (Shared) Methods

Equals (inherited from Object) Determines whether the specified Object instances are considered equal.
ReferenceEquals (inherited from Object) Determines whether the specified Object instances are the same instance.

Public Instance Constructors

DUNConnection Constructor constructs new AT command channel

Public Instance Properties

Connection This property holds the connection used to send/receive AT commands

Public Instance Methods

AddStatusCode According to GSM specifications, end of response is recognized by detecting valid response code. By default the DUNConnection object recognizes only v250 responses. Use this method to add custom respons codes in the application.
AddStatusPrefix According to GSM specifications, end of response is recognized by detecting valid response code. Some response codes like +CMS ERROR: are recognized by prefixes only. By default the DUNConnection object recognizes only v250 responses. Use this method to add custom respons codes prefix in the application.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetResponse Reads last response available
GetType (inherited from Object) Gets the Type of the current instance.
ReadLine Reads single line from the channel. The method blocks till full line is available or read timeout elapses.
SendCommandOverloaded. Sends new command string through the channel
ToString (inherited from Object) Returns a String that represents the current Object.
WriteLine sends a line via the channel

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetLine method that does reads single line
IsFinalStatus Method verifies if a line is valid response code
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
Read reads data from the channel and store it in the internal resposne buffer
TrimResponse removes whitespace characters from the response

See Also

DUNConnection Class | BlueLibs.GSM Namespace