Show / Hide Table of Contents

    Class GprsProvider

    Class with methods to perform GPRS related actions.

    Inheritance
    System.Object
    GprsProvider
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Eclo.nF.SIM800H
    Assembly: cs.temp.dll.dll
    Syntax
    public class GprsProvider : IDisposable

    Methods

    CheckBearerStatus(BearerProfile)

    Queries a GPRS bearer profile to check if it's opened. On successful execution context open status is updated in the respective GprsNNNBearerIsOpen property

    Declaration
    public AtCommandResult CheckBearerStatus(BearerProfile profile)
    Parameters
    Type Name Description
    BearerProfile profile

    The bearer profile.

    Returns
    Type Description
    AtCommandResult

    CheckConnectionStatus(Int32)

    Queries current status of a specific GPRS connection

    Declaration
    public ConnectionStatus CheckConnectionStatus(int connection)
    Parameters
    Type Name Description
    System.Int32 connection
    Returns
    Type Description
    ConnectionStatus

    CloseBearer(BearerProfile)

    Closes a GPRS context bearer profile

    Declaration
    public AtCommandResult CloseBearer(BearerProfile profile)
    Parameters
    Type Name Description
    BearerProfile profile

    The bearer profile.

    Returns
    Type Description
    AtCommandResult

    DetachGprs()

    Detach GPRS

    Declaration
    public AtCommandResult DetachGprs()
    Returns
    Type Description
    AtCommandResult

    Dispose()

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Finalize()

    Declaration
    protected void Finalize()

    OpenBearerAsync(BearerProfile, AsyncCallback, Object)

    Starts an asynchronous operation to open a GPRS bearer. A GPRS bearer is required for HTTP client, SNTP, MMS and location requests.

    Declaration
    public OpenBearerAsyncResult OpenBearerAsync(BearerProfile profile, AsyncCallback asyncCallback = null, object asyncState = null)
    Parameters
    Type Name Description
    BearerProfile profile

    The bearer profile

    System.AsyncCallback asyncCallback

    The callback to be invoked upon completion, optional

    System.Object asyncState

    The state object to be stored against the OpenGprsContextAsyncResult, optional

    Returns
    Type Description
    OpenBearerAsyncResult

    The OpenBearerAsyncResult

    OpenBearerAsync(AsyncCallback, Object)

    Declaration
    [Obsolete("This method is obsolete and will be removed in a future version. Replace with OpenBearerAsync specifying a BearerProfile.")]
    public OpenBearerAsyncResult OpenBearerAsync(AsyncCallback asyncCallback = null, object asyncState = null)
    Parameters
    Type Name Description
    System.AsyncCallback asyncCallback
    System.Object asyncState
    Returns
    Type Description
    OpenBearerAsyncResult

    OpenGprsConnectionAsync(AsyncCallback, Object)

    Starts an asynchronous operation to open a GPRS connection. A GPRS connection is required to use sockets, IP apps and MMS.

    Declaration
    public ConnectGprsAsyncResult OpenGprsConnectionAsync(AsyncCallback asyncCallback = null, object asyncState = null)
    Parameters
    Type Name Description
    System.AsyncCallback asyncCallback

    The callback to be invoked upon completion, optional

    System.Object asyncState

    The state object to be stored against the OpenGprsContextAsyncResult, optional

    Returns
    Type Description
    ConnectGprsAsyncResult

    The ConnectGprsAsyncResult

    Events

    GprsIpAppsBearerStateChanged

    Event raised when the status of the IP bearer for IP apps changes.

    Declaration
    public event GprsProvider.GprsIpAppsBearerStateChangedHandler GprsIpAppsBearerStateChanged
    Event Type
    Type Description
    GprsProvider.GprsIpAppsBearerStateChangedHandler

    GprsSocketsBearerStateChanged

    Event raised when the status of the sockets bearer changes.

    Declaration
    public event GprsProvider.GprsSocketsBearerStateChangedHandler GprsSocketsBearerStateChanged
    Event Type
    Type Description
    GprsProvider.GprsSocketsBearerStateChangedHandler

    MmsBearerStateChanged

    Event raised when the status of the MMS changes.

    Declaration
    public event GprsProvider.MmsBearerStateChangedHandler MmsBearerStateChanged
    Event Type
    Type Description
    GprsProvider.MmsBearerStateChangedHandler

    Implements

    System.IDisposable
    Back to top Copyright © 2018 Eclo Solutions
    Generated by DocFX