RUI3 (RAK Unified Interface 3) - RAK4631
rak1910.h
Go to the documentation of this file.
1 #ifndef __RAK_1910_H__
2 #define __RAK_1910_H__
3 
4 #include "Arduino.h"
5 #include "TinyGPS++.h"
6 #include "variant.h"
7 
8 typedef enum {
13 
14 class rak1910 {
15 
16  private:
17  TinyGPSPlus myGPS;
18  uint8_t statusBuf;
19  float latBuf;
20  float lngBuf;
21  public:
22  rak1910();
24 
30  bool init();
31 
37  bool update();
38 
43  float latitude();
44 
49  float longitude();
50 
51  float altitude();
52  float speed();
53  float hdop();
54 };
55 
56 #endif // end of rak1910.h
Definition: rak1910.h:9
RAK1910_status status()
Definition: rak1910.h:11
float altitude()
Definition: rak1910.h:10
RAK1910_status
Definition: rak1910.h:8
float latitude()
This function will trigger the RAK1910 to return the latest latitude value.
bool init()
This function enabled the RAK1910 sensor and puts the device into standby mode / sleep mode for lowes...
float longitude()
This function will trigger the RAK1910 to return the latest longitude value.
float hdop()
bool update()
This function will trigger the RAK1910 to update the longitute and latitude values, after the values are updated theRAK1910 will go back to power saving mode.
float speed()
Definition: rak1910.h:14
Definition: TinyGPS++.h:223