Skip to main content

Class NmeaUtilities

Provide common functionality for the decode classes.

Assembly: NmeaProcessor.dll
View Source
Declaration
public class NmeaUtilities

Methods

TimeOfReading(string?, string)

Extract the time of the reading.

View Source
Declaration
public static DateTime? TimeOfReading(string? date, string time)
Returns

System.Nullable<System.DateTime>: DateTime object containing the time.

Parameters
TypeNameDescription
System.StringdateDate the reading was taken (this can be null)
System.StringtimeString containing the time of the reading in the format hhmmss.sss

DegreesMinutesDecode(string, string)

Decode the degrees / minutes location and return a DMPosition.

View Source
Declaration
public static DegreesMinutesSecondsPosition? DegreesMinutesDecode(string location, string direction)
Returns

Meadow.Peripherals.Sensors.Location.DegreesMinutesSecondsPosition: DMPosition in degrees and minutes.

Parameters
TypeNameDescription
System.StringlocationLocation in the format dddmm.mmmm or ddmm.mmmm
System.StringdirectionDirection of the reading, one of N, S, E, W.
Exceptions

System.ArgumentException
Throw if the location string cannot be decoded.