Skip to main content

Interface ICellNetworkAdapter

Provides an abstraction for a cellular INetworkAdapter

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface ICellNetworkAdapter : INetworkAdapter

Properties

Imei

Gets the adapter's IMEI

View Source
Declaration
string Imei { get; }

Csq

Gets the adapter's CSQ

View Source
Declaration
int Csq { get; }

AtCmdsOutput

Gets the adapter's AT common output

View Source
Declaration
string AtCmdsOutput { get; }

Fields

networkScanTimeoutInSeconds

Timeout duration in seconds for online network scans

View Source
Declaration
public const int networkScanTimeoutInSeconds = 600

signalQualityFetchTimeoutInSeconds

Timeout duration in seconds for fetching cell signal quality

View Source
Declaration
public const int signalQualityFetchTimeoutInSeconds = 120

gnssFixTimeoutInSeconds

Timeout duration in seconds for GNSS-related AT commands and output retrieval

View Source
Declaration
public const int gnssFixTimeoutInSeconds = 600

Methods

OfflineNetworkScan()

Performs an offline scan for networks detected by the adapter

View Source
Declaration
CellNetwork[] OfflineNetworkScan()
Returns

Meadow.Networking.CellNetwork[]: An array of CellNetwork objects representing available networks.### GetSignalQuality(int) Get current signal quality

View Source
Declaration
int GetSignalQuality(int timeout = 120)
Returns

System.Int32

Parameters
TypeName
System.Int32timeout

ScanForAvailableNetworks(int)

Initiates an online network scan to detect available networks, bypassing the need to enter "Scan Mode"

View Source
Declaration
CellNetwork[] ScanForAvailableNetworks(int timeout = 600)
Returns

Meadow.Networking.CellNetwork[]: An array of CellNetwork objects representing available networks.

Parameters
TypeNameDescription
System.Int32timeoutThe scan timeout duration in seconds.

FetchGnssAtCmdsOutput(IGnssResult[], int)

View Source
Declaration
string FetchGnssAtCmdsOutput(IGnssResult[] resultTypes, int timeout = 600)
Returns

System.String: A string containing combined output from GNSS-related AT commands, including NMEA sentences.

Parameters
TypeNameDescription
Meadow.Peripherals.Sensors.Location.Gnss.IGnssResult[]resultTypesAn array of supported GNSS result types for data processing.
System.Int32timeoutThe GNSS scan timeout duration in seconds.