Interface ICellNetworkAdapter
Provides an abstraction for a cellular INetworkAdapter
Assembly: Meadow.Contracts.dll
View Source
public interface ICellNetworkAdapter : INetworkAdapter
Properties
Imei
Gets the adapter's IMEI
View Source
string Imei { get; }
Csq
Gets the adapter's CSQ
View Source
string Csq { get; }
AtCmdsOutput
Gets the adapter's AT common output
View Source
string AtCmdsOutput { get; }
Fields
networkScanTimeoutInSeconds
Timeout duration in seconds for online network scans
View Source
public const int networkScanTimeoutInSeconds = 600
signalQualityFetchTimeoutInSeconds
Timeout duration in seconds for fetching cell signal quality
View Source
public const int signalQualityFetchTimeoutInSeconds = 120
gnssFixTimeoutInSeconds
Timeout duration in seconds for GNSS-related AT commands and output retrieval
View Source
public const int gnssFixTimeoutInSeconds = 600
Methods
OfflineNetworkScan()
Performs an offline scan for networks detected by the adapter
View Source
CellNetwork[] OfflineNetworkScan()
Returns
Meadow.Networking.CellNetwork[]
: An array of CellNetwork objects representing available networks.### GetSignalQuality(int)
Get current signal quality
View Source
double GetSignalQuality(int timeout = 120)
Returns
System.Double
Parameters
Type | Name |
---|---|
System.Int32 | timeout |
ScanForAvailableNetworks(int)
Initiates an online network scan to detect available networks, bypassing the need to enter "Scan Mode"
View Source
CellNetwork[] ScanForAvailableNetworks(int timeout = 600)
Returns
Meadow.Networking.CellNetwork[]
: An array of CellNetwork objects representing available networks.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | timeout | The scan timeout duration in seconds. |
FetchGnssAtCmdsOutput(IGnssResult[], int)
View Source
string FetchGnssAtCmdsOutput(IGnssResult[] resultTypes, int timeout = 600)
Returns
System.String
: A string containing combined output from GNSS-related AT commands, including NMEA sentences.
Parameters
Type | Name | Description |
---|---|---|
Meadow.Peripherals.Sensors.Location.Gnss.IGnssResult[] | resultTypes | An array of supported GNSS result types for data processing. |
System.Int32 | timeout | The GNSS scan timeout duration in seconds. |