Skip to content

Commit 9dbb516

Browse files
authored
Update README.md
1 parent 6e536b8 commit 9dbb516

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,32 @@ demo.getInfo("speed"); // 12
9898
demo.getInfo("heading"); // 25
9999
demo.getInfo("magneticVariation"); // 1.2
100100
...
101+
102+
// You can also use Getters and Setters, for example:
103+
104+
API > Get
105+
106+
demo.altitude
107+
demo.altitudeUnits
108+
demo.checksum
109+
demo.coordinates
110+
demo.fixType
111+
demo.hdop
112+
demo.satellites
113+
demo.sentenceType
114+
demo.time
115+
demo.date
116+
demo.heading
117+
demo.magneticVariation
118+
demo.magneticVariationDirection
119+
demo.positionStatus
120+
demo.speed
121+
122+
API > Set
123+
124+
// Define a new sentence in the constructor
125+
demo.set = "$GPRMC,001225,A,2832.1834,N,08101.0536,W,12,25,251211,1.2,E,A*03";
126+
101127
```
102128

103129
<b>As a paremeter:</b>
@@ -113,3 +139,4 @@ demo.getInfo("altitudeUnits", "$GPGGA,092751.000,5321.6802,N,00630.3371,W,1,8,1.
113139
demo.getInfo("hdop", "$GPGGA,092751.000,5321.6802,N,00630.3371,W,1,8,1.03,61.7,M,55.3,M,,*75"); // 1.03
114140
...
115141
```
142+

0 commit comments

Comments
 (0)