Table of Contents

Class GnssDevice

Namespace
Iot.Device.Common.GnssDevice
Assembly
Iot.Device.Common.GnssDevice.dll

Base class for all Gnss devices.

public abstract class GnssDevice
Inheritance
GnssDevice
Derived

Constructors

GnssDevice()

protected GnssDevice()

Properties

Fix

Gets or sets the fix status of the Gnss module.

public Fix Fix { get; protected set; }

Property Value

Fix

GnssMode

Gets or sets the mode of the GNSS device.

public virtual GnssMode GnssMode { get; set; }

Property Value

GnssMode

GnssOperation

Gets or sets the mode of the Gnss module.

public GnssOperation GnssOperation { get; protected set; }

Property Value

GnssOperation

The mode of the Gnss module.

IsRunning

Gets a value indicating whether the GNSS device is running.

public abstract bool IsRunning { get; }

Property Value

bool

Location

Gets or sets the last known location.

public Location Location { get; protected set; }

Property Value

Location

SatellitesInView

Gets or sets the satellites in view.

public int[] SatellitesInView { get; protected set; }

Property Value

int[]

Methods

GetProductDetails()

Gets the product details.

public abstract string GetProductDetails()

Returns

string

A string representing the product details.

Start()

Starts the GNSS device.

public abstract bool Start()

Returns

bool

A value indicating whether the start was successful.

Stop()

Stops the GNSS device.

public abstract bool Stop()

Returns

bool

A value indicating whether the stop was successful.

Events

FixChanged

Represents the event handler for when the fix status of the Gnss module changes.

public event GnssDevice.FixChangedHandler FixChanged

Event Type

GnssDevice.FixChangedHandler

LocationChanged

Event that occurs when the location changes.

public event GnssDevice.LocationChangeHandler LocationChanged

Event Type

GnssDevice.LocationChangeHandler

OperationModeChanged

Represents the event that is raised when the mode of the Gnss module is changed.

public event GnssDevice.ModeChangedHandler OperationModeChanged

Event Type

GnssDevice.ModeChangedHandler

ParsedMessage

Event handler for parsed message not handled by the base class.

public event GnssDevice.ParsedMessageHandler ParsedMessage

Event Type

GnssDevice.ParsedMessageHandler

ParsingError

Event handler for parsing errors that occur during data processing of GNSS module.

public event GnssDevice.ParsingErrorHandler ParsingError

Event Type

GnssDevice.ParsingErrorHandler

UnparsedMessage

Event handler for unparsed messages.

public event GnssDevice.UnparsedMessageHangler UnparsedMessage

Event Type

GnssDevice.UnparsedMessageHangler