Sigfox library with integration of ATParser

Revision:
6:799a482a7024
Parent:
5:66e05787ad5c
Child:
7:48396d48ae12
--- a/Sigfox.h	Sat May 27 10:55:06 2017 +0000
+++ b/Sigfox.h	Mon May 29 19:42:14 2017 +0000
@@ -17,16 +17,24 @@
  * Send command to Sigfox
  *
  */
+#ifndef SIGFOX_H
+#define SIGFOX_H
 
 #include "ATParser.h"
 #include "mbed.h"
 
+typedef struct _sigfoxvoltage {
+    double current;
+    double last;
+} sigfoxvoltage_t;
+
 class Sigfox
 {
     private:
     ATParser *_at;
     char ID[9];
     char PAC[17];
+    char tmp[12];
     
     public:
     Sigfox(ATParser &at) : _at(&at) {
@@ -53,4 +61,8 @@
     char *getID();
     
     char *getPAC();
-};
\ No newline at end of file
+    
+    sigfoxvoltage_t getVoltages();
+};
+
+#endif  /* SIGFOX_H */
\ No newline at end of file